我将我的swarm导入了docker cloud。我在云中有2台机器,第三台机器是我的。我想连接swarm(意思是 - 从我的机器中的一个管理器运行命令 - 工作者节点 - 如果我错了,我就会出现)。
连接到stavalfi / swarm1 :(第一个命令是docker cloud告诉我运行的)
root@stavalfi:~# docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client stavalfi/swarm1
=> You can now start using the swarm stavalfi/swarm1 by executing:
export DOCKER_HOST=tcp://127.0.0.1:32768
root@stavalfi:~# export DOCKER_HOST=tcp://127.0.0.1:32768
root@stavalfi:~# docker ps
Error response from daemon: Get https://cuiez4n2tvdbjt0acbug84tgz.direct.docker.cloud:2376/v1.32/containers/json: dial tcp: lookup cuiez4n2tvdbjt0acbug84tgz.direct.docker.cloud on 8.8.8.8:53: no such host
当我尝试从chorme输入:http://localhost:32768/时,我得到:
Get https://cuiez4n2tvdbjt0acbug84tgz.direct.docker.cloud:2376/: dial tcp: lookup cuiez4n2tvdbjt0acbug84tgz.direct.docker.cloud on 8.8.8.8:53: no such host
此外,我正在运行client_proxy_stavalfi_swarm1 image:
stavalfi@stavalfi:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1980c6e430d9 dockercloud/client-proxy "/client-proxy" 14 hours ago Up 16 minutes 127.0.0.1:32768->2375/tcp client_proxy_stavalfi_swarm1
如何解决此错误?