已解决:启动docker报错:“Job for docker.service failed because the control process exited with error”解决办法

启动docker时报错

[root@localhost ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

根据提示输入:

[root@localhost ~]# systemctl status docker.service

如果是:

SELinux is not supported with the overlay2 graph driver on this kernel.

SELinux不支持此内核上的overlay2图形驱动程序,禁用selinux即可

如果是:

docker.service: main process exited, code=exited, status=1/FAILURE
Failed to start Docker Application Container Engine.
Unit docker.service entered failed state.
docker.service failed.
docker.service holdoff time over, scheduling restart.
daemon.json文件包含格式不正确的JSON,Docker将无法启动
vim  /etc/docker/daemon.json

 加入如下内容,或者删除多余逗号,修改json格式。

                      {
                       
                      "storage-driver"
                      :
                       
                      "devicemapper"
                       
                      }

 

你可能感兴趣的:(日积跬步)