Docker出现Cannot connect to the Docker daemon. Is the docker daemon running on this host错误解决办法

Docker出现Cannot connect to the Docker daemon. Is the docker daemon running on this host错误解决办法,第1张

Docker出现Cannot connect to the Docker daemon. Is the docker daemon running on this host错误解决办法

Docker出现Cannot connect to the Docker daemon. Is the docker daemon running on this host错误解决办法

发生现象:

ubuntu15下,安装完Docker后,运行docker images 报错Cannot connect to the Docker daemon. Is the docker daemon running on this host? 如下图

原因分析:

目前我遇到这个问题是两个原因造成的,一个是服务没启动,另一个是当前用户没权限。

解决方案:

1.启动服务:service docker start

2.在执行命令前加上sudo如:sudo docker images

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/898645.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-15
下一篇 2022-05-15

发表评论

登录后才能评论

评论列表(0条)

保存