DOCKER启动失败Job for docker.service failed because the control process exited with error code. See "syste mctl 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 "syste
mctl status docker.service" and "journalctl -xe" for details.

查看错误信息:

 1 [root@localhost ~]# docker -v
 2 Docker version 1.13.1, build b2f74b2/1.13.1
 1 [root@localhost ~]# systemctl status docker.service -l
 2 ● docker.service - Docker Application Container Engine
 3    Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
 4    Active: failed (Result: exit-code) since Wed 2019-06-19 04:25:25 EDT; 14min ago
 5      Docs: http://docs.docker.com
 6   Process: 5412 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-
 7 proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_O
 8 PTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
 9  Main PID: 5412 (code=exited, status=1/FAILURE)
10 
11 Jun 19 04:25:24 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
12 Jun 19 04:25:24 localhost.localdomain dockerd-current[5412]: time="2019-06-19T04:25:24.402861259-04:00" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not fo
13 und"
14 Jun 19 04:25:24 localhost.localdomain dockerd-current[5412]: time="2019-06-19T04:25:24.418276049-04:00" level=info msg="libcontainerd: new containerd process, pid: 5417"
15 Jun 19 04:25:25 localhost.localdomain dockerd-current[5412]: time="2019-06-19T04:25:25.440697173-04:00" level=warning msg="overlay2: the backing xfs filesystem is formatted without d_type support, 
16 which leads to incorrect behavior. Reformat the filesystem with ftype=1 to enable d_type support. Running without d_type support will no longer be supported in Docker 1.16."
17 Jun 19 04:25:25 localhost.localdomain dockerd-current[5412]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disabl
18 e selinux in docker (--selinux-enabled=false)
19 Jun 19 04:25:25 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
20 Jun 19 04:25:25 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
21 Jun 19 04:25:25 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
22 Jun 19 04:25:25 localhost.localdomain systemd[1]: docker.service failed.

 

关键信息:SELinux is not supported with the overlay2 graph driver on this kernel. 

分析原因:此linux的内核中的SELinux不支持 overlay2 graph driver

    重新编辑docker配置文件: vi /etc/sysconfig/docker 

    修改 --selinux-enabled=false 

重新启动docker: [root@localhost ~]# systemctl start docker 

启动成功!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 docker 启动失败 Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. docker 报错: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details Linux系统Docker启动问题Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" 启动Nginx服务失败:Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. Job for docker.service failed because the control process exited with error code. See Docker服务启动报错:Job for docker.service failed because the control process exited with error code. Linux 重启网卡失败 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. centos7启动MySQL报 Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM