zoukankan      html  css  js  c++  java
  • DOCKER启动失败Job for docker.service failed because the control process exited with error code. See "syste mctl status docker.service" and "journalctl -xe" for details.

    [root@localhost ~]# systemctl start docker
    Job for docker.service failed because the control process exited with error code. See "syste
    mctl status docker.service" and "journalctl -xe" for details.

    查看错误信息:

     1 [root@localhost ~]# docker -v
     2 Docker version 1.13.1, build b2f74b2/1.13.1
     1 [root@localhost ~]# systemctl status docker.service -l
     2 ● docker.service - Docker Application Container Engine
     3    Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
     4    Active: failed (Result: exit-code) since Wed 2019-06-19 04:25:25 EDT; 14min ago
     5      Docs: http://docs.docker.com
     6   Process: 5412 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-
     7 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_O
     8 PTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
     9  Main PID: 5412 (code=exited, status=1/FAILURE)
    10 
    11 Jun 19 04:25:24 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
    12 Jun 19 04:25:24 localhost.localdomain dockerd-current[5412]: time="2019-06-19T04:25:24.402861259-04:00" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not fo
    13 und"
    14 Jun 19 04:25:24 localhost.localdomain dockerd-current[5412]: time="2019-06-19T04:25:24.418276049-04:00" level=info msg="libcontainerd: new containerd process, pid: 5417"
    15 Jun 19 04:25:25 localhost.localdomain dockerd-current[5412]: time="2019-06-19T04:25:25.440697173-04:00" level=warning msg="overlay2: the backing xfs filesystem is formatted without d_type support, 
    16 which leads to incorrect behavior. Reformat the filesystem with ftype=1 to enable d_type support. Running without d_type support will no longer be supported in Docker 1.16."
    17 Jun 19 04:25:25 localhost.localdomain dockerd-current[5412]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disabl
    18 e selinux in docker (--selinux-enabled=false)
    19 Jun 19 04:25:25 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
    20 Jun 19 04:25:25 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
    21 Jun 19 04:25:25 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
    22 Jun 19 04:25:25 localhost.localdomain systemd[1]: docker.service failed.

    关键信息:SELinux is not supported with the overlay2 graph driver on this kernel. 

    分析原因:此linux的内核中的SELinux不支持 overlay2 graph driver

        重新编辑docker配置文件: vi /etc/sysconfig/docker 

        修改 --selinux-enabled=false 

    重新启动docker: [root@localhost ~]# systemctl start docker 

    启动成功!

    分享即成长
  • 相关阅读:
    Spark记录-SparkSQL远程操作MySQL和ORACLE
    Spark记录-Spark on Yarn框架
    Linux记录-重启后磁盘丢失问题解决方案
    Spark记录-阿里巴巴开源工具DataX数据同步工具使用
    Spark记录-SparkSql官方文档中文翻译(部分转载)
    Spark记录-SparkSQL一些操作
    Spark记录-Spark-Shell客户端操作读取Hive数据
    Spark记录-SparkSQL相关学习
    Spark记录-Scala程序例子(函数/List/match/option/泛型/隐式转换)
    CM记录-升级Spark版本到2.x(转载)
  • 原文地址:https://www.cnblogs.com/bobkingblog/p/11052382.html
Copyright © 2011-2022 走看看