docker使用过程中遇到的Cannot connect to the Docker daemon问题
问题描述
今天要导入镜像到docker中产生了如下错误:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
判断是服务出现了问题
解决方法
$ systemctl daemon-reload
$ sudo service docker restart
$ sudo service docker status (should see active (running))
$ sudo docker run hello-world
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 787772394@qq.com
文章标题:docker使用过程中遇到的Cannot connect to the Docker daemon问题
本文作者:二豆子·pwnd0u
发布时间:2019-11-24, 00:36:34
最后更新:2019-11-24, 00:37:58
原始链接:http://blog.codefat.cn/2019/11/24/docker%E4%BD%BF%E7%94%A8%E8%BF%87%E7%A8%8B%E4%B8%AD%E9%81%87%E5%88%B0%E7%9A%84Cannot-connect-to-the-Docker-daemon%E9%97%AE%E9%A2%98/版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。