Docker未启动错误:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon
Posted 君临
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker未启动错误:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon相关的知识,希望对你有一定的参考价值。
此问题是因为Docker安装后未启动所致,执行以下命令启动docker:
systemctl start docker.service
具体日志如下:
Connecting to 172.16.10.217:22... Connection established. To escape to local shell, press \'Ctrl+Alt+]\'. Last login: Fri Aug 24 17:35:46 2018 [root@localhost ~]# docker ps Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [root@localhost ~]# systemctl start docker.service [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [root@localhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE [root@localhost ~]#
以上显示已经成功启动。
以上是关于Docker未启动错误:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon的主要内容,如果未能解决你的问题,请参考以下文章
docker启动报错解决及分析(Cannot create container for service *******: cannot mount volume over existing file,
Mac Cannot connect to the Docker daemon at unix:///var/run/docker.sock. 问题解决
Mac Cannot connect to the Docker daemon at unix:///var/run/docker.sock. 问题解决
Mac Cannot connect to the Docker daemon at unix:///var/run/docker.sock. 问题解决
Cannot connect to the Docker datemon at tcp://0.0.0.0:2375 is the docker daemon runing?