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