Hi,
I’m following the below guide for trying to set up a MongoDB shard on Docker and I’m finding some issues.
Which guide are you following? Please note that the mongo
image on Docker Hub is officially maintained by the Docker team and is not directly supported by MongoDB. For Docker-specific support I would suggest posting on Docker Forums.
Regarding your connection issue:
[root@centos7 ~]# mongo —port 127:0:0.1:32778
You are supplying an invalid --port
parameter. I think you meant to connect to 127.0.0.1
on port 32778
. Could you try to change the command line to
mongo --host 127.0.0.1 --port 32778
and see if you can connect to it?
If you’re still having issues, could you post:
Best regards,
Kevin