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

发布时间:2022-04-25 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了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

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

脚本宝典总结

以上是脚本宝典为你收集整理的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错误解决办法所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。