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