CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error cod
Posted china-yanggisboy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error cod相关的知识,希望对你有一定的参考价值。
一、启动失败
1.启动docker
[[email protected] ~]# 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 查看详细原因
2.查看启动失败原因
[[email protected] ~]# systemctl status docker.service
[[email protected] 桌面]# systemctl status docker.service
[[email protected] 桌面]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 日 2018-11-18 11:55:12 CST; 38s ago
Docs: http://docs.docker.com
Process: 6659 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-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_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
Main PID: 6659 (code=exited, status=1/FAILURE)
11月 18 11:55:11 192.168.1.10 systemd[1]: Starting Docker Application Conta....
11月 18 11:55:11 192.168.1.10 dockerd-current[6659]: time="2018-11-18T11:55:...
11月 18 11:55:11 192.168.1.10 dockerd-current[6659]: time="2018-11-18T11:55:...
11月 18 11:55:12 192.168.1.10 dockerd-current[6659]: time="2018-11-18T11:55:...
11月 18 11:55:12 192.168.1.10 dockerd-current[6659]: Error starting daemon: ...
11月 18 11:55:12 192.168.1.10 systemd[1]: docker.service: main process exit...E
11月 18 11:55:12 192.168.1.10 systemd[1]: Failed to start Docker Applicatio....
11月 18 11:55:12 192.168.1.10 systemd[1]: Unit docker.service entered faile....
11月 18 11:55:12 192.168.1.10 systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
3.解决方法:
1.cd /etc/sysconfig 进入这个文件夹下,
vi docker 打开这个文件 修改 OPTIONS=‘--selinux-enabled=false 这个参数即可
2.修改完配置文件
启动docker 启动就成功
以上是关于CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error cod的主要内容,如果未能解决你的问题,请参考以下文章
docker探索-CentOS7中配置Docker的yum源并升级安装docker1.13
docker 启动失败 Job for docker.service failed because the control process exited with error code. See &q
mysql启动失败:Job for mysqld.service failed because..
centos7启动iptables时报Job for iptables.service failed because the control process exited with error cod