• k8s系列---部署集群


    docer启动出错

    [root@centos-minion yum.repos.d]# 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.
    [root@centos-minion yum.repos.d]# 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-05-28 17:46:55 CST; 18s ago
         Docs: http://docs.docker.com
      Process: 13351 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: 13351 (code=exited, status=1/FAILURE)
    
    5月 28 17:46:53 centos-minion systemd[1]: Starting Docker Application Container Engine...
    5月 28 17:46:53 centos-minion dockerd-current[13351]: time="2018-05-28T17:46:53.858516000+08:00" ...8"
    5月 28 17:46:55 centos-minion dockerd-current[13351]: Error starting daemon: SELinux is not suppo...e)
    5月 28 17:46:55 centos-minion systemd[1]: docker.service: main process exited, code=exited, stat...URE
    5月 28 17:46:55 centos-minion systemd[1]: Failed to start Docker Application Container Engine.
    5月 28 17:46:55 centos-minion systemd[1]: Unit docker.service entered failed state.
    5月 28 17:46:55 centos-minion systemd[1]: docker.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@centos-minion yum.repos.d]# vim /etc/sysconfig/docker
    [root@centos-minion yum.repos.d]# 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-05-28 17:46:55 CST; 42s ago
         Docs: http://docs.docker.com
      Process: 13351 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: 13351 (code=exited, status=1/FAILURE)
    
    5月 28 17:46:53 centos-minion systemd[1]: Starting Docker Application Container Engine...
    5月 28 17:46:53 centos-minion dockerd-current[13351]: time="2018-05-28T17:46:53.858516000+08:00" ...8"
    5月 28 17:46:55 centos-minion dockerd-current[13351]: Error starting daemon: SELinux is not suppo...e)
    5月 28 17:46:55 centos-minion systemd[1]: docker.service: main process exited, code=exited, stat...URE
    5月 28 17:46:55 centos-minion systemd[1]: Failed to start Docker Application Container Engine.
    5月 28 17:46:55 centos-minion systemd[1]: Unit docker.service entered failed state.
    5月 28 17:46:55 centos-minion systemd[1]: docker.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.

    修改docker配置文件,修改如下

    OPTIONS='--selinux-enabled=false --insecure-registry gcr.io'
    if [ -z "${DOCKER_CERT_PATH}" ]; then
        DOCKER_CERT_PATH=/etc/docker
    fi

     注意hosts需要添加gcr.io的相应解析

    61.91.161.217  gcr.io
  • 相关阅读:
    【交往智慧】005.做一个愿意聆听的人
    【生活智慧】005.信守诺言的约束
    人生时间表. 如果您有了时间
    爱情五十七课,还是两个人
    【生活智慧】008.不要把自己的不顺归结于外在因素
    【交往智慧】006.勇于接受别人的意见
    【交往智慧】001.交际本领可使你利用外界的无限能量
    【交往智慧】007.给人改过的机会
    【生活智慧】004.把手放在《圣经》上
    【交往智慧】003.要能与人和谐相处
  • 原文地址:https://www.cnblogs.com/dribs/p/9101409.html
Copyright © 2020-2023  润新知