docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon ru

阅读 92

2023-02-28


场景

执行docker build命令的时候报错,信息为:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

解决方案

执行如下命令即可

systemctl daemon-reload;
systemctl restart docker;
systemctl status docker; # 查看状态


精彩评论(0)

0 0 举报