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用户可以运行 初次安装Docker 运行出现的问题。 - 牛牛 - 牛牛的博客


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM