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
启动成功!
分享即成长
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现