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

我是在服务器动态扩容之后出现的这个问题

解决办法:重启服务器,或者启动docker服务

systemctl start docker  或重启systemctl restart docker

查看状态
systemctl status docker
 
原文地址:https://www.cnblogs.com/mihoutao/p/13826449.html