Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?(代码

Posted Xavier Jiezou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?(代码相关的知识,希望对你有一定的参考价值。

问题描述

Docker 部署项目时报错:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

原因分析

可能是没有启动 Docker。

解决方案

启动 Docker:

sudo service docker start

引用参考

https://docs.docker.com/engine/install/ubuntu/

以上是关于Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?(代码的主要内容,如果未能解决你的问题,请参考以下文章

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?