Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?

Posted IamThat

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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/[email protected]/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?的主要内容,如果未能解决你的问题,请参考以下文章

Cannot connect to database because the database client

Cannot connect to the Docker daemon. Is the docker daemon running on this host

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Cannot connect to the Docker datemon at tcp://0.0.0.0:2375 is the docker daemon runing?

Error when connecting to the GNS3 server: Cannot connect to http://127.0.0.1:3080. Please check if G

Docker初次安装运行出错:Cannot connect to the Docker daemon at ***/docker.sock. Is the docker daemon running?