docker提示: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
上一篇 /dev/sda2占用100%、磁盘占用100%的怎么解决?
下一篇 youtube-dl和FFmpeg下载地址