docker启动时报错Job for docker.service failed because the control process exited
安装docker启动时报错
[root@docker ~]# 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@docker ~]# journalctl -xe -- Subject: Unit docker-storage-setup.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit docker-storage-setup.service has finished starting up. -- -- The start-up result is done. 3月 25 08:55:16 docker systemd[1]: Starting Docker Application Container Engine... -- Subject: Unit docker.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit docker.service has begun starting up. 3月 25 08:55:16 docker dockerd-current[11502]: time="2019-03-25T08:55:16.893471669+08:0 3月 25 08:55:16 docker dockerd-current[11502]: time="2019-03-25T08:55:16.911785727+08:0 3月 25 08:55:18 docker dockerd-current[11502]: Error starting daemon: SELinux is not su 3月 25 08:55:18 docker systemd[1]: docker.service: main process exited, code=exited, st 3月 25 08:55:18 docker systemd[1]: Failed to start Docker Application Container Engine. -- Subject: Unit docker.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit docker.service has failed. -- -- The result is failed. 3月 25 08:55:18 docker systemd[1]: Unit docker.service entered failed state. 3月 25 08:55:18 docker systemd[1]: docker.service failed. 3月 25 08:55:18 docker polkitd[620]: Unregistered Authentication Agent for unix-process
这是由于当前的内核不支持selinux的 overlay2 graph drive,解决办法为安装新内核或者修改docker的配置文件
[root@docker ~]# vim /etc/sysconfig/docker

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。