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

  • Post author:
  • Post last modified:2021-02-02
  • Post category:深冷技术
  • Post comments:0评论

参考以下文章

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

发表评论