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

docker本身已安装正常,当执行docker images命令时,出现:

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

问题原因: 因为docker服务没有启动,所以在相应的/var/run/ 路径下找不到docker的进程

执行 service docker start |systemctl start docker 命令,启动docker服务,返回:

Redirecting to /bin/systemctl start docker.service

此时进程启动成功,再执行docker images,问题解决!

猜你喜欢

转载自blog.csdn.net/zhoupenghui168/article/details/89087747
今日推荐