天天看點

Error response from daemon: --cluster-store and --cluster-advertise daemon configurations are incompatible with swarm mode

将docker worker node加入swarm叢集時,出現以下錯誤

Error response from daemon: --cluster-store and --cluster-advertise daemon configurations are incompatible with swarm mode

1.試驗環境:

centos7

2.報錯翻譯:--cluster-store和--cluster-advertise背景配置與叢集不一緻

3.分析:--cluster-advertise是用來指定叢集與其他node的通信位址的

            --cluster-store是我之前做網絡實驗的時候配置了etcd叢集的通信位址用的

Error response from daemon: --cluster-store and --cluster-advertise daemon configurations are incompatible with swarm mode

在添加worker node的時候二者發生了沖突導緻的

4.解決辦法

将/etc/systemd/system/docker.service.d/10-machine.conf

檔案中的--cluster-store,删除即可,儲存退出後,重新開機服務

systemctl daemon-reload

 systemctl restart docker.service

如果上述方法不能解決,請參考:http://www.chinacloud.cn/show.aspx?id=25332&cid=22

Error response from daemon: --cluster-store and --cluster-advertise daemon configurations are incompatible with swarm mode

或者參考:https://github.com/moby/moby/issues/24569