无法在tcp://1.0.1.7:2375连接到Docker守护程序。 docker守护程序是否正在运行?

时间:2017-04-07 19:45:59

标签: docker containers docker-swarm docker-swarm-mode

我在docker中设置了3个管理器和3个节点的本机群集。以下是结果:

docker node ls (dev-manager1)

ID                           HOSTNAME           STATUS  AVAILABILITY  MANAGER STATUS
2ms0ibflqj3jlsgcv8y1flmrn    dev-node1     Ready   Active
68p6nhjlrl5x05msgsannhzxt *  dev-manager1  Ready   Active        Leader
avqmsub8zbqhrc0p55wgq1vtg    dev-node2     Ready   Active
bicmmx2gxiq57ydycm65vca0u    dev-node3     Ready   Active
bszstgcdzhhnnu4xz86dqso3m    dev-manager2  Ready   Active        Reachable
dnp4yy7661fa3ob6mal9090v5    dev-manager3  Ready   Active        Reachable

docker ps (dev-manager1)

CONTAINER ID        IMAGE                           COMMAND                  CREATED             STATUS              PORTS                                                                                                                                               NAMES
e5b87a9af9cd        gliderlabs/registrator:latest   "/bin/registrator con"   23 hours ago        Up 23 hours                                                                                                                                                             registrator
40867e62acfc        swarm                           "/swarm manage --repl"   23 hours ago        Up 23 hours         0.0.0.0:3375->2375/tcp                                                                                                                              mgr1
28e77b7ebcdf        progrium/consul                 "/bin/start -server -"   24 hours ago        Up 24 hours         1.0.1.4:8300-8302->8300-8302/tcp, 1.0.1.4:8400->8400/tcp, 53/tcp, 172.17.0.1:53->53/udp, 1.0.1.4:8500->8500/tcp, 1.0.1.4:8301-8302->8301-8302/udp   consul1

从客户端:

export DOCKER_HOST=dev-manager1:3375
docker info

Nodes: 3
(unknown): 1.0.1.7:2375
└ ID:
└ Status: Pending
└ Containers: 0
└ Reserved CPUs: 0 / 0
└ Reserved Memory: 0 B / 0 B
└ Labels:
└ Error: Cannot connect to the Docker daemon at tcp://1.0.1.7:2375. Is the docker daemon running?
└ UpdatedAt: 2017-04-07T18:14:21Z
└ ServerVersion:

错误

  

无法在tcp://1.0.1.7:2375连接到Docker守护程序。 docker守护程序是否正在运行?

如果您需要更多信息,请与我们联系。

0 个答案:

没有答案