zoukankan      html  css  js  c++  java
  • docker安装后启动出现错误

    重启报错:

    [root@localhost ~]# systemctl restart docker
    Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
    
    [root@localhost ~]# journalctl -xe
    -- The start-up result is done.
    12月 19 10:27:58 localhost systemd[1]: Started Docker Storage Setup.
    -- Subject: Unit docker-storage-setup.service has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit docker-storage-setup.service has finished starting up.
    -- 
    -- The start-up result is done.
    12月 19 10:27:58 localhost systemd[1]: Starting Docker Application Container Engine...
    -- Subject: Unit docker.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit docker.service has begun starting up.
    12月 19 10:27:58 localhost dockerd-current[3480]: time="2018-12-19T10:27:58.101895626+08:00" level=warning 
    12月 19 10:27:58 localhost dockerd-current[3480]: time="2018-12-19T10:27:58.106879353+08:00" level=info msg
    12月 19 10:27:59 localhost dockerd-current[3480]: Error starting daemon: SELinux is not supported with the 
    12月 19 10:27:59 localhost systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
    12月 19 10:27:59 localhost systemd[1]: Failed to start Docker Application Container Engine.
    -- Subject: Unit docker.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit docker.service has failed.
    -- 
    -- The result is failed.
    12月 19 10:27:59 localhost systemd[1]: Unit docker.service entered failed state.
    12月 19 10:27:59 localhost systemd[1]: docker.service failed.
    12月 19 10:27:59 localhost polkitd[896]: Unregistered Authentication Agent for unix-process:3420:114832 (sy
    

    原因是:

    这是由于overlay2不支持造成的,所以我们要关闭它。
    

    解决方法:

     vim /etc/sysconfig/docker    (修改文件)

    DNS='--selinux-enabled --log-driver=journald --signature-verification=false'
    if [ -z "${DOCKER_CERT_PATH}" ]; then
        DOCKER_CERT_PATH=/etc/docker
    fi
    

    重启: systemctl restart docker

     

  • 相关阅读:
    python之新手一看就懂的小说爬虫
    Mysql与Oracle区别
    Java面试2018常考题目汇总(一)(转)
    单例式的优缺点和使用场景
    设计模式之单例模式通俗理解
    IntelliJ Idea 最常用快捷键
    sql语句基础和提升
    Tomcat 安装配置
    Git基本常用命令
    Java练手题
  • 原文地址:https://www.cnblogs.com/liu1026/p/10141774.html
Copyright © 2011-2022 走看看