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?(代码的主要内容,如果未能解决你的问题,请参考以下文章