1、啓動失敗linux
1.啓動dockerdocker
[root@localhost ~]# systemctl start dockerjson
Job for docker.service failed because the control process exited with error code.code
See "systemctl status docker.service" and "journalctl -xe " for details.ip
上面表示輸入 systemctl status docker.service 查看詳細緣由it
2.查看啓動失敗緣由io
[root@localhost ~]# systemctl status docker.service配置
[root@192 桌面]# systemctl status docker.servicefile
[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)service
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 啓動就成功