Cannot connect to the Docker datemon at tcp://0.0.0.0:2375 is the docker daemon runing?
Posted sh170706
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cannot connect to the Docker datemon at tcp://0.0.0.0:2375 is the docker daemon runing?相关的知识,希望对你有一定的参考价值。
一、系统环境:
在Windows 7 64位上,采用Vmware workstation 12安装了CenOS7.5 64位。
二、问题
在CentOS7.5里安装了Docker,启动docker服务,输入docker version,则出现错误信息:
Cannot connect to the Docker datemon at tcp://0.0.0.0:2375 is the docker daemon runing?
三、解决过程
1、配置DOCKER_HOST
sudo vim /etc/profile.d/docker.sh
添加下面内容:
export DOCKER_HOST=tcp://localhost:2375
2、应用
1)、source /etc/profile
2)、source /etc/bashrc
3、配置启动文件
1)、sudo vim /lib/systemd/system/docker.service
2)、修改下面语句
ExecStart=/usr/bin/dockerd -H unix://
修改为:
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock -H tcp://0.0.0.0:7654
4、重载配置和重启
1)、sudo systemctl daemon-reload
2)、sudo systemctl restart docker.service
5、查看
docker version
说明已经正常。
以上是关于Cannot connect to the Docker datemon at tcp://0.0.0.0:2375 is the docker daemon runing?的主要内容,如果未能解决你的问题,请参考以下文章
Cannot connect to database because the database client
Cannot connect to the Docker daemon. Is the docker daemon running on this host
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Cannot connect to the Docker datemon at tcp://0.0.0.0:2375 is the docker daemon runing?
Error when connecting to the GNS3 server: Cannot connect to http://127.0.0.1:3080. Please check if G
Docker初次安装运行出错:Cannot connect to the Docker daemon at ***/docker.sock. Is the docker daemon running?