欢迎来到我的博客小站。  交流请加我微信好友: studyjava。  也欢迎关注公众号:Java学习之道 Fork me on GitHub

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

问题描述:

刚在新的Centos上安装Docker后,运行 docker run hello-world 报错 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

解决办法:

[docker@izwtbz ~]# systemctl daemon-reload
[docker@izwtbz ~]# sudo service docker restart
[docker@izwtbz ~]# sudo service docker status 

此时你可以看到:
Active: active (running)

[docker@izwtbz ~]# sudo docker run hello-world
posted @ 2019-12-24 10:46  淼淼之森  阅读(52674)  评论(1编辑  收藏  举报
  👉转载请注明出处和署名