docker Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 问题解决
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Failed to start Docker Application Container Engine.
docker Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
可以先用以下命令解决:
systemctl daemon-reload
systemctl restart docker
如果以上命令不足以解决,
这些问题可能最终的原因是:
/etc/docker/daemon.json里的
{
"registry-mirrors":["https://registry.docker-cn.com"]
}
有空格,要删除空格,可以缩进