Docker启动报错:Job for docker.service failed because the control process exited with error code. See “sy
本文转载自博客园作者:蜗牛coder,点击前往原文
本机环境是VMware Workstation上安装的CentOS7。然后下载Docker。
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@192 ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code.See "systemctl status docker.service" and "journalctl -xe" for details.
接下来使用一下命令查看报错原因。
systemctl status docker.service -l
[root@192 ~]# systemctl status docker.service -l
● docker.service - Docker Application Container EngineLoaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor prese
t: disabled)Active: failed (Result: exit-code) since Thu 2020-08-06 11:06:09 EDT; 1min 45sagoDocs: http://docs.docker.comProcess: 13914 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/us
r/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt nat
ive.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-c
urrent --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc
/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $AD
D_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/
FAILURE)Main PID: 13914 (code=exited, status=1/FAILURE)Aug 06 11:06:08 192.168.179.130 systemd[1]: Starting Docker Application ContainerEngine...
Aug 06 11:06:08 192.168.179.130 dockerd-current[13914]: time="2020-08-06T11:06:08
.498501526-04:00" level=warning msg="could not change group /var/run/docker.sock
to docker: group docker not found"
Aug 06 11:06:08 192.168.179.130 dockerd-current[13914]: time="2020-08-06T11:06:08
.505441943-04:00" level=info msg="libcontainerd: new containerd process, pid: 139
21"
Aug 06 11:06:09 192.168.179.130 dockerd-current[13914]: time="2020-08-06T11:06:09
.533309487-04:00" level=warning msg="overlay2: the backing xfs filesystem is form
atted without d_type support, which leads to incorrect behavior. Reformat the fil
esystem with ftype=1 to enable d_type support. Running without d_type support wil
l no longer be supported in Docker 1.16."
Aug 06 11:06:09 192.168.179.130 dockerd-current[13914]: Error starting daemon: SE
Linux is not supported with the overlay2 graph driver on this kernel. Either bootinto a newer kernel or disable selinux in docker (--selinux-enabled=false)
Aug 06 11:06:09 192.168.179.130 systemd[1]: docker.service: main process exited,
code=exited, status=1/FAILURE
Aug 06 11:06:09 192.168.179.130 systemd[1]: Failed to start Docker Application Co
ntainer Engine.
Aug 06 11:06:09 192.168.179.130 systemd[1]: Unit docker.service entered failed st
ate.
Aug 06 11:06:09 192.168.179.130 systemd[1]: docker.service failed.
关键信息:在Error starting daemon后可以找到报错原因:SELinux is not supported with the overlay2 graph driver on this kernel.
分析原因:此linux的内核中的SELinux不支持 overlay2 graph driver。
解决步骤:
1、在命令窗口输入命令去重新编辑docker配置文件:
vi /etc/sysconfig/docker
2、键入 i 开始修改
--selinux-enabled=false
3、修改完成后按Esc,在键盘键入 :wq 后回车表示写入完毕并保存退出
4、重新启动docker
systemctl start docker
启动成功!
注: 此文章只为记录开发过程中的错误,学习,如发现侵权请私信删除
Docker启动报错:Job for docker.service failed because the control process exited with error code. See “sy相关推荐
- jenkins启动报错 Job for jenkins.service failed because the control process exited with error code.
启动时若提示下述内容,则表示启动失败 Job for jenkins.service failed because the control process exited with error code ...
- 启动nginx服务报错Job for nginx.service failed because the control process exited with error code.
nginx使用service nginx restart报错 启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control p ...
- mysql重启报错b for mysqld.service failed because the control process exited with error code. See “syst
当我们重启mysql执行systemctl restart mysqld命令或者我们启动mysql服务时执行命令systemctl start mysqld时会出现以下报错:Job for mysql ...
- cento网络故障:Job for network.service failed because the control process exited with error code. See sy
报错: [root@localhost ~]# systemctl restart network Job for network.service failed because the control ...
- Linux重启网卡报Job for network.service failed because the control process exited with error code. 错误
重启网卡报Job for network.service failed because the control process exited with error code. 错误 centos7下重 ...
- 关于Job for network.service failed because the control process exited with error code.
重启网络出现报错 Job for network.service failed because the control process exited with error code. See &quo ...
- Job for network.service failed because the control process exited with error code问题
最小化安装了centos7 当配置静态ip的时候,执行 重启网卡的命令 systemctl restart network 但是报了 Job for network.service failed be ...
- Docker启动服务报错Job for docker.service failed because the control process exited with error code
执行启动命令: systemctl start docker systemctl enable docker 执行第一个命令报错: Job for docker.service failed beca ...
- Reids报错解决:Job for redis-server.service failed because the control process exited with error code.
此文首发于我的个人博客:Reids报错解决 Job for redis-server.service failed because the control process exited with er ...
最新文章
- Scala swing和FX
- 根据 中序遍历 和 后序遍历构造树(Presentation)(C++)
- java mkfifo_在Java中创建命名管道
- 秒杀 mysql 事务_秒杀怎么样才可以防止超卖?基于mysql的事务和锁实现
- LeetCode——分治
- 亿级流量网站架构核心技术_关于大型网站系统架构你不得不懂的10个问题
- Retrofit+RxJava联网工具类
- 一个 WordPress 安装,多个博客
- mysql字符集解释_MySQL字符集详解
- begin.lydsy 入门OJ题库:1104:那些N位数
- 仔仔手机安全卫士demo(四)
- 重定向与请求转发的区别
- 绝美前端HTML登录页面
- Java选出偶数,Java 定义集合存入20个随机数字,通过自定义方法筛选偶数元素,放入新集合,打印输出...
- Winform当移入控件时,鼠标变手的通用方法
- 51单片机--外部中断
- 千寻位置平台使用入门总结
- vscode怎么看调用的接口_编辑器 VS Code 如何快速查看 Go 接口?
- java Excel 从第三行开始读取怎么设置
- 寒假总结和新学期计划