项目场景:
在Centos中安装Docker完成后,在用 systemctl start docker 启动docker的时候出现报错信息:Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
问题描述:
用 systemctl start docker 启动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 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.
原因分析:
这里的问题是linux的内核中的SELinux不支持 overlay2 graph driver ,解决方法有两个: 1、启动一个新内核; 2、在docker里禁用selinux,–selinux-enabled=false。解决方案:
在这里我们使用第二种方式进行解决。