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 1.12 搭建多主机docker swarm集群
本篇文章主要介绍了使用docker 1.12 搭建多主机docker swarm集群,具有一定的参考价值,感兴趣的小伙伴们可以参考一下2017-07-07
Gitlab-runner+Docker实现自动部署SpringBoot项目
这篇文章主要介绍了Gitlab-runner+Docker自动部署SpringBoot项目,我们的主要流程就是通过Gitlab管理代码,然后利用Gitlab自带的Gitlab CI/CD功能与GitlabRunner进行注册绑定,需要的朋友可以参考下2022-04-04


最新评论