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.)

一、启动失败

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 启动就成功

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

时间: 2024-08-26 03:49:56

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.)的相关文章

Linux系统Docker启动问题Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service"

在Liunx中使用Docker, 注: Liunx使用的是在虚拟机下的centOS7版本在刚开始安装Docker时没有任何错误, 但是在后续的docker启动过程中, 出现以下问题: 1 [[email protected] docker]# service docker start 2 Redirecting to /bin/systemctl start docker.service 3 Job for docker.service failed because the control pr

docker 报错: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

centos 启动docker服务报错: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. 1,create daemon.json in /etc/docker/ 2, put this in it: { &q

Linux 重启网卡失败 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

linux下重启网卡使用命令 : service network restart 时报错: [[email protected] hadoop]# service network restart Starting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.servi

docker启动时报错Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

这里报错主要是因为docker启动时需要默认开启selinux,但是可能由于安装某些应用,我们关闭了selinux,所以此时我们需要设置/etc/sysconfig/docker 将下图标黄位置改为false,即设置docker启动时默认不需要开启selinux # /etc/sysconfig/docker # Modify these options if you want to change the way the docker daemon runs OPTIONS='--selinux

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

在Liunx中使用Docker, 注: Liunx使用的是在虚拟机下的centOS7版本在刚开始安装Docker时没有任何错误, 但是在后续的docker启动过程中, 出现以下问题: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service"1刚遇到这个问题时, 在百度上找答案, 但是找到的答案都不能满足这个

centos 报错 “Job for iptables.service failed because the control process exited with error code.”的解决办法

原因:因为centos7默认的防火墙是firewalld防火墙,不是使用iptables,因此需要先关闭firewalld服务,或者干脆使用默认的firewalld防火墙. 操作步骤: 关闭防火墙 1.systemctl stop firewalld 2.systemctl mask firewalld 在使用iptables服务 #开放443端口(HTTPS)3.iptables -A INPUT -p tcp --dport 443 -j ACCEPT #保存上述规则4.service ip

nginx启动报错:Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' fo

一.背景 这个错误在重启nginx或者启动nginx的时候,经常会出现.我之前也一直认为出现这个错误是因为有程序占用了nginx的进程.但是知其然不知其所以然.每次报错都有点懵逼,所以这边一步步排查错误,做个记录. 二.排错过程 1.按照提示 //按照提示,执行此命令,查看错误原因 systemctl status nginx.service 由报错信息可知,nginx绑定80端口失败.详细错误请输入 -l 继续查看 2.继续跟踪错误 //查看错误的详情 systemctl status ngi

Apache重启失败,提示:Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

今天更新完程序,重启apache的时候,第一遍正常重启,1分钟之后第二次重启的时候报错了. 执行service httpd restart之后: 报错: Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details. 此时查看apache状态已经处于stop. 执行 ps -ef | grep httpd  命令查看端口占用的时候,已经没有httpd进程,ap

CentOS启动MySQL服务失败

150112 15:21:28 mysqld_safe Starting mysqld daemon with databases from /data/mysql 150112 15:21:28 [Warning] Can't create test file /data/mysql/localhost.lower-test 150112 15:21:28 [Warning] Can't create test file /data/mysql/localhost.lower-test ^G/