请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

输入/usr/bin/dockerd -H tcp://0.0.0.0:2375。。。命令报错,请问如何解决

ERRO[2018-11-07T09:22:53.810954499+08:00] 2018/11/07 09:22:53 [ERR] memberlist: Conflicting address for localhost.localdomain. Mine: 192.168.20.103:7946 Theirs: 192.168.20.119:7946

ERRO[2018-11-07T09:22:53.810981602+08:00] 2018/11/07 09:22:53 [ERR] serf: Node name conflicts with another node at 192.168.20.119:7946. Names must be unique! (Resolution enabled: true)

ERRO[2018-11-07T09:22:53.819904311+08:00] 2018/11/07 09:22:53 [ERR] memberlist: Conflicting address for localhost.localdomain. Mine: 192.168.20.103:7946 Theirs: 192.168.20.119:7946

ERRO[2018-11-07T09:22:53.819927110+08:00] 2018/11/07 09:22:53 [ERR] serf: Node name conflicts with another node at 192.168.20.119:7946. Names must be unique! (Resolution enabled: true)

WARN[2018-11-07T09:22:57.011911353+08:00] 2018/11/07 09:22:57 [WARN] serf: minority in name conflict resolution, quiting [0 / 0]

WARN[2018-11-07T09:22:57.011973879+08:00] 2018/11/07 09:22:57 [WARN] serf: Shutdown without a Leave

WARN[2018-11-07T09:22:57.020982238+08:00] 2018/11/07 09:22:57 [WARN] serf: minority in name conflict resolution, quiting [0 / 0]

正在回答 回答被采纳积分+3

3回答

提问者 慕少9424800 2018-11-07 13:30:57

是的,那个etcd状态是好的,创建overlay网络也可以传到对端机器,就是容器间无法互相ping通

0 回复 有任何疑惑可以回复我~
  • 那您创建的容器都挂载到您创建的那个overlay的network上了是吧。如果其他都没问题的话,那有可能是防火墙有问题。
    请问您用的环境是什么呢?本地vagrant创建的两台VM么
    回复 有任何疑惑可以回复我~ 2018-11-07 14:47:21
麦兜搞IT 2018-11-07 13:28:16

如果是etcd的实验,请确保 etcd cluster是正常的

etcd-v3.0.12-linux-amd64$ ./etcdctl cluster-health
member 21eca106efe4caee is healthy: got healthy result from http://192.168.205.10:2379
member 8614974c83d1cc6d is healthy: got healthy result from  cluster is healthy


0 回复 有任何疑惑可以回复我~
  • 提问者 慕少9424800 #1
    放在那里不进行操作也会有报错日志
    [root@node1 etcd-v3.0.12-linux-amd64]# WARN[2018-11-07T13:31:47.477389779+08:00] peerDbAdd transient condition - Key:10.0.0.2 02:42:0a:00:00:02 cardinality:2 db state:Set{{c567b4e3c2c51ae6f41a1f49ccea140bffd8e778332b6a9af40579bf3dde3db6 192.168.20.103 24 32 true}, {dummy 192.168.20.103 24 32 false}}
    WARN[2018-11-07T13:31:47.477472523+08:00] Entry already present in db: nid:8e041071de8d0c8a2755f20ccd5655bf946757db296a4fccb8b6c7be0bc3af8f eid:dummy peerIP:10.0.0.2 peerMac:02:42:0a:00:00:02 isLocal:false vtep:192.168.20.103
    回复 有任何疑惑可以回复我~ 2018-11-07 13:37:35
麦兜搞IT 2018-11-07 13:24:50

memberlist: Conflicting address for localhost.localdomain. Mine: 192.168.20.103:7946 Theirs: 192.168.20.119:7946 .  地址冲突? 请问您是做etcd那个实验么?

0 回复 有任何疑惑可以回复我~
  • 提问者 慕少9424800 #1
    是的,输入命令得到etcd的状态也是对的
    [root@node1 etcd-v3.0.12-linux-amd64]# ./etcdctl cluster-health
    member 4dab9dba491edb01 is healthy: got healthy result from http://192.168.20.103:2379
    member 66ad5a6c20074249 is healthy: got healthy result from http://192.168.20.119:2379
    cluster is healthy
    创建容器也提示不能重名,创建overlay网络也能传递过去,就是两边容器不能互相ping通,ping ip都不行
    回复 有任何疑惑可以回复我~ 2018-11-07 13:34:02
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信