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

场景

执行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;  # 查看状态

发布了482 篇原创文章 · 获赞 19 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/enthan809882/article/details/104453094
今日推荐