执行docker命令报错Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon

今天把cenntos克隆了一份在新的电脑安装后执行docker info命令是报错Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

解决方案如下

$ systemctl daemon-reload
$ sudo service docker restart
$ sudo service docker status 
$ sudo docker run hello-world

猜你喜欢

转载自blog.csdn.net/w651263072/article/details/82143303
今日推荐