zoukankan      html  css  js  c++  java
  • 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

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

  • 相关阅读:
    2020年. NET Core面试题
    java Context namespace element 'component-scan' and its parser class ComponentScanBeanDefinitionParser are only available on JDK 1.5 and higher 解决方法
    vue 淡入淡出组件
    java http的get、post、post json参数的方法
    vue 父子组件通讯案例
    Vue 生产环境解决跨域问题
    npm run ERR! code ELIFECYCLE
    Android Studio 生成apk 出现 :error_prone_annotations.jar (com.google.errorprone:error) 错误
    记忆解析者芜青【总集】
    LwIP应用开发笔记之十:LwIP带操作系统基本移植
  • 原文地址:https://www.cnblogs.com/China-YangGISboy/p/9977448.html
Copyright © 2011-2022 走看看