建立 swarm 集群后,撤掉 leader,其它 node 无法 leave


环境描述:

物理机 + OpenStack虚拟机(CoreOS)×2

物理机 docker 版本:

docker version

Client:
Version: 1.12.1-rc2
API version: 1.24
Go version: go1.6.3
Git commit: 236317f
Built: Wed Aug 17 04:47:08 2016
OS/Arch: linux/amd64
Server:
Version: 1.12.1-rc2
API version: 1.24
Go version: go1.6.3
Git commit: 236317f
Built: Wed Aug 17 04:47:08 2016
OS/Arch: linux/amd64

CoreOS docker 版本:

docker version

Client:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: f1e1b83
OS/Arch: linux/amd64
Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: f1e1b83
OS/Arch: linux/amd64

错误提示:

Error response from daemon: context deadline exceeded

解决方法:

systemctl stop docker
rm -rf /var/lib/docker/swarm
systemctl start docker
/var/lib/docker/swarm目录内容:
1.png

注意:

因OpenStack虚拟机原因,需要指定 --advertise-addr
已邀请:

xiangxu

赞同来自:


systemctl restart docker
docker swarm leave --force

要回复问题请先登录注册