Docker-swarm>>无法连接到docker引擎端点 [英] Docker-swarm >> Cannot connect to the docker engine endpoint
问题描述
docker版本1.9.1
swarm版本1.0.1
为什么连接3个虚拟机(桥接网)到群集。 docker info显示所有节点
状态待决。
3个主机中有1个是管理器,所有输出都来自此主机。我不知道在哪里寻找。
运行 swarm --debug管理令牌:// XXXXX
output >>
* INFO [0000]收听HTTP addr = 127.0.0.1:2375 proto = tcp
DEBU [0000]无法验证挂起的节点:无法连接到docker引擎端点Addr = 10.32.1.38:2375
DEBU [0000]无法验证挂起的节点:无法连接到docker引擎端点Addr = 10.32.1.4:2375
DEBU [0000]无法验证挂起的节点:无法连接到docker引擎端点Addr = 10.32.1.33:2375
然后
root @ ubuntu:〜#ps -ef | grep swarm
root 2158 1391 0 12:28 pts / 2 00:00:00 swarm join token:// xxxxxxx --addr 10.32.1.4:2375
root 2407 1213 0 13:57 pts / 1 00:00:00群组管理令牌:// xxxxxxx -H 0.0.0.0:4243
root 2413 1391 0 13:57 pts / 2 00:00:00 grep --color = auto swarm
然后
root @ ubuntu:〜#swarm list token:// xxxxxxxxxxx
10.32.1.4:2375
10.32.1.33:2375
10.32.1.38:2375
然后
root @ ubuntu:〜#ps -ef | grep docker
root 2330 1 0 12:52? 00:00:00 / usr / bin / docker守护进程
root 2421 1391 0 14:10 pts / 2 00:00:00 grep --color = auto docker
心跳排序 - 在后台运行,检查端口,名称解析,可从管理器ping。
我已经在/ etc / default / docker中添加了DOCKER_OPTS值
DOCKER_OPTS = - H < >主机IP>:2375 -H unix:///var/run/docker.sock
更精确的是<<主机IP >>是您编辑/ etc / default / docker文件的主机IP。
也许它会帮助某人。
docker version 1.9.1
swarm version 1.0.1
why on connecting 3 VMs (bridged net) to swarm. "docker info" shows me all nodes
Status pending.
1 of 3 hosts is manager all output is from this host. I don't know where to look for.
On running swarm --debug manage token://XXXXX
output >>
*INFO[0000] Listening for HTTP addr=127.0.0.1:2375 proto=tcp
DEBU[0000] Failed to validate pending node: Cannot connect to the docker engine endpoint Addr=10.32.1.38:2375
DEBU[0000] Failed to validate pending node: Cannot connect to the docker engine endpoint Addr=10.32.1.4:2375
DEBU[0000] Failed to validate pending node: Cannot connect to the docker engine endpoint Addr=10.32.1.33:2375
Then
root@ubuntu:~# ps -ef | grep swarm
root 2158 1391 0 12:28 pts/2 00:00:00 swarm join token://xxxxxxx --addr 10.32.1.4:2375
root 2407 1213 0 13:57 pts/1 00:00:00 swarm manage token://xxxxxxx -H 0.0.0.0:4243
root 2413 1391 0 13:57 pts/2 00:00:00 grep --color=auto swarm
Then
root@ubuntu:~# swarm list token://xxxxxxxxxxx
10.32.1.4:2375
10.32.1.33:2375
10.32.1.38:2375
Then
root@ubuntu:~# ps -ef | grep docker
root 2330 1 0 12:52 ? 00:00:00 /usr/bin/docker daemon
root 2421 1391 0 14:10 pts/2 00:00:00 grep --color=auto docker
heartbeat sorted - runs in background, checked ports, name resolution, pingable from manager.
I have added DOCKER_OPTS values in /etc/default/docker
DOCKER_OPTS="-H <>host IP<>:2375 -H unix:///var/run/docker.sock"
to be more precise << Host IP >> is same host IP you editing your /etc/default/docker file.
Maybe it will help someone.
这篇关于Docker-swarm>>无法连接到docker引擎端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!