docker swarm 各节点无法正常连接

weixin_35772245 2016-08-02 05:18:58
如题,在配置好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:
...全文
1206 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
charleyren 2017-09-10
  • 打赏
  • 举报
回复
请问怎么解决
liufudong 2016-08-08
  • 打赏
  • 举报
回复
我也遇到相同的问题。不知道什么原因,哪个大神给指导指导阿
zhaipai 2016-08-02
  • 打赏
  • 举报
回复

23,124

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧