码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.)

时间:2018-11-18 13:10:18      阅读:616      评论:0      收藏:0      [点我收藏+]

标签:sysconf   RoCE   size   cat   方法   doc   mct   net   active   

一、启动失败

1.启动docker

[root@localhost ~]# 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.查看启动失败原因

[root@localhost ~]# systemctl status docker.service

[root@192 桌面]# systemctl status docker.service

[root@192 桌面]# 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 code. See "systemctl status docker.service" and "journalctl -xe" for details.)

标签:sysconf   RoCE   size   cat   方法   doc   mct   net   active   

原文地址:https://www.cnblogs.com/China-YangGISboy/p/9977448.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!