Open lekev opened 7 years ago
I believe the problem is that the hostname has changed. I pushed some updates recently that fixed the behavior of the container restarting, but unfortunately it doesn't really deal with the issue of creating a new container with the same underlying database volume/data.
I think as a short term solution, you may be able to just set the hostname for your database in the compose.yml
. The replica set is currently being configured by hostname, and if the hostname doesn't change it should work.
I'd gladly accept a pull request that fixes the underlying issue. There's probably a way to just force the replica set reconfiguration and ignore the error.
Hi, I have a problem when i try to rerun the image any idea ? When i try to rerun the image i get this error from rs.status() inside the mongo shell
this is my docker compose
this is my log from the image :