cannot connect to the docker daemon at unix:///var/run/docker.sock

参考以下文章

centos7运行docker报错”Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?”

执行命令:

sudo dockerd --debug

之后重启docker:

systemctl restart docker
systemctl status docker

如果上述方法不行,先执行下列目录,删除文件夹,再执行一遍。

rm -rf /var/run/docker.sock

发表回复