docker swarm 各节点无法正常连接
如题,在配置好swarm后,启动swarm服务。
但是在查看信息时发现,所有节点都无法正常连接,但是swarm服务确实已经启动。
而且已经在配置文件中添加:OPTIONS='-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock'
输入sudo docker -H 192.168.101.66:2376 info
内容如下
Containers: 0
Images: 0
Role: primary
Strategy: spread
Filters: health, port, containerslots, dependency, affinity, constraint
Nodes: 3
(unknown): 192.168.101.66:2375
?.ID:
?.Status: Pending
?.Containers: 0
?.Reserved CPUs: 0 / 0
?.Reserved Memory: 0 B / 0 B
?.Labels:
?.Error: Cannot connect to the Docker daemon. Is the docker daemon running on this host?
?.UpdatedAt: 2016-08-02T07:50:34Z
?.ServerVersion:
(unknown): 192.168.101.64:2375
?.ID:
?.Status: Pending
?.Containers: 0
?.Reserved CPUs: 0 / 0
?.Reserved Memory: 0 B / 0 B
?.Labels:
?.Error: Cannot connect to the Docker daemon. Is the docker daemon running on this host?
?.UpdatedAt: 2016-08-02T07:50:34Z
?.ServerVersion:
(unknown): 192.168.101.65:2375
?.ID:
?.Status: Pending
?.Containers: 0
?.Reserved CPUs: 0 / 0
?.Reserved Memory: 0 B / 0 B
?.Labels:
?.Error: Cannot connect to the Docker daemon. Is the docker daemon running on this host?
?.UpdatedAt: 2016-08-02T07:50:34Z
?.ServerVersion: