天天看点

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

执行docker ps命令,出现

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

错误

此时已确定Docker本身已经安装正常。

问题原因是因为docker服务没有启动,所以在相应的/var/run/ 路径下找不到docker的进程。

执行

service docker start

命令,启动docker服务,返回docker start/running, process 2662

此时进程启动成功,再执行docker ps,问题解决

越是无知的人越是觉得自己无所不知(之前的自己)

越是学习的人越是觉得自己会的太少了(现在的自己)

共勉