【docker】Job for docker.service failed because the control process exited with error code

  1. 问题描述 安装完 docker 之后报错 Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.

  2. 查看错误详情

systemctl status docker.service

  1. 错误信息 Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or dis…abled=false) 此处意思是 linux 的内核中的 SELinux 不支持 overlay2 graph driver ,解决方法有两个,要么启动一个新内核,要么就在 docker 里禁用 selinux,–selinux-enabled=false, 后者解决办法如下:

  2. 重启docker