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

来源:5-3 数据持久化之Data Volume

慕少9424800

2018-11-07

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回答

慕少9424800

提问者

2018-11-07

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

0
1
麦兜搞IT
那您创建的容器都挂载到您创建的那个overlay的network上了是吧。如果其他都没问题的话,那有可能是防火墙有问题。 请问您用的环境是什么呢?本地vagrant创建的两台VM么
2018-11-07
共1条回复

麦兜搞IT

2018-11-07

如果是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
1
慕少9424800
放在那里不进行操作也会有报错日志 [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
共1条回复

麦兜搞IT

2018-11-07

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

0
1
慕少9424800
是的,输入命令得到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
共1条回复

系统学习Docker 践行DevOps理念

无论你是开发、测试还是运维,Docker都是你的必备技能。

3297 学习 · 1895 问题

查看课程