问题描述:
查看状态显示:Failed to start Docker Application Container Engine
重启docker出现: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details
解决方案:
排查问题:
使用:
$ sudo dockerd --debug
这是配置文件:/etc/docker/daemon.json 出现问题,修改配置文件即可
cat > /etc/docker/daemon.json <<EOF
{
#根据情况更改
"insecure-registries":["192.168.100.110/24"],
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"live-restore": true,
"storage-driver": "overlay2",
"registry-mirrors": ["https://rsbud4vc.mirror.aliyuncs.com","https://registry.dockercn.com","https://docker.mirrors.ustc.edu.cn","https://dockerhub.azk8s.cn","http://hubmirror.c.163.com","http://qtid6917.mirror.aliyuncs.com"]
}
EOF
重启配置后运行成功