docker1.13.1 启动失败解决方案(二)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35241080/article/details/80496422
一、启动失败
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
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-05-29 02:55:27 EDT; 1min 0s ago
     Docs: http://docs.docker.com
  Process: 18936 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=doc
ker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/doc
ker/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: 18936 (code=exited, status=1/FAILURE)

May 29 02:55:26 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
May 29 02:55:26 localhost.localdomain dockerd-current[18936]: time="2018-05-29T02:55:26.453246882-04:00" level=warning msg="could n...ound"
May 29 02:55:26 localhost.localdomain dockerd-current[18936]: time="2018-05-29T02:55:26.457979101-04:00" level=info msg="libcontain...8942"
May 29 02:55:27 localhost.localdomain dockerd-current[18936]: time="2018-05-29T02:55:27.477309579-04:00" level=warning msg="overlay2: th...
May 29 02:55:27 localhost.localdomain dockerd-current[18936]: Error starting daemon: SELinux is not supported with the overlay2 gra...alse)
May 29 02:55:27 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
May 29 02:55:27 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
May 29 02:55:27 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
May 29 02:55:27 localhost.localdomain 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://segmentfault.com/a/1190000014559152

猜你喜欢

转载自blog.csdn.net/qq_35241080/article/details/80496422
今日推荐