Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
解决办法:
这是daemon.json 配置的文件格式的错误,
重新修改daemon.json 如下,
# cat daemon.json
{
"registry-mirrors": ["https://b9pmyelo.mirror.aliyuncs.com"],
"insecure-registries": ["ip"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2"
}
#
重启服务即可!
#systemctl daemon-reload
#systemctl restart docker.service