You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've a Docker instance with mongo. This run as standalone configuration. Now I would to change entrypoint.sh to run itself as replica set following official guide standalone to replica set
Any suggestion? I've tried to manually setting up entrypoint.sh but it have crashed my container.
The text was updated successfully, but these errors were encountered:
As far as I can tell, you shouldn't need to change the entrypoint. As long as you have the data accessible to a new container, just run it with the --replSet flag:
$ docker run -d --name some-mongo -v /path/to/my/data/dir:/data/db mongo --replSet rs0
$ # then connect to it with a mongo shell:
$ docker run -it --link some-mongo:mongo --rm mongo mongo mongo/myDatabase
> rs.initiate()
I've a Docker instance with mongo. This run as standalone configuration. Now I would to change
entrypoint.sh
to run itself as replica set following official guide standalone to replica setAny suggestion? I've tried to manually setting up entrypoint.sh but it have crashed my container.
The text was updated successfully, but these errors were encountered: