Docker无法启动,报错:Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

执行命令:

rm -rf /var/lib/docker/

vim /etc/docker/daemon.json

# 添加如下内容

{
    "graph": "/mnt/docker-data",
    "storage-driver": "overlay"
}

重启服务:

systemctl restart docker

查看状态:

systemctl status docker

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐