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
Adding automation for setting up a replica set is not something we want to add to the image since it requires an external service like consul in order to reliably coordinate which is the first and where to join.
我有一个主机 192.168.31.206 在上面使用docker搭建了3个节点 ip分别为:
mongodb 配置文件为:
[root@vipsc-159 config]# cat mongod.conf
使用docker-compose启动:
我将3个docker的端口分别映射到32018,32118,32218
但是当我初始化 replicaset时无法通过主机ip进行初始化:
会报错
但是 可以通过docker的ip进行初始化
为什么
如果我希望通过192.168.31.206初始化成功 我应该怎么做
希望得到大家的帮助
The text was updated successfully, but these errors were encountered: