Job for docker.service failed because the control process exited with error code. See "systemctl status do cker.service" and "journalctl -xe" for details.

问题出现 :入手操作Docker时,安装启动后报了这个错 Job for docker.service failed because the control process exited with error code. See "systemctl status do cker.service" and "journalctl -xe" for details.

定位问题 :根据提示输入“systemctl status do cker.service”,回车,出现如下提示:

百度原因 :此linux的内核中的SELinux不支持 overlay2 graph driver ,解决方法有两个,要么启动一个新内核,要么就在docker里禁用selinux,–selinux-enabled=false

解决操作 :

  1》 vi  /etc/sysconfig/docker

  2》在 --selinux-enabled 后加 =false  ;表示 在docker里禁用selinux

 

  3》问题已解决,启动即可 systemctl start docker

 

原文地址:https://www.cnblogs.com/hero123/p/10108498.html