首页 > 代码库 > Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?
Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?
if first time to install docker, be noted the docker engine started as root
copied from: http://blog.163.com/s2006203387@126/blog/static/533199572015111703735423/
Ubuntu 14.04
第一次安装Docker,运行hello-world 是可以的,
重启系统之后,运行hello-world 出现如下报错:
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
多方查找,解决如下:
sudo su - //切换到root
service docker start //启动docker service
docker images //显示所有images
docker run hello-world //重新运行
恩,是权限问题,当前用户没权限,root用户可以运行
Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。