docker 增加镜像加速器后出现问题ITeye - 娱乐之横扫全球

docker 增加镜像加速器后出现问题ITeye

2019年03月28日09时07分31秒 | 作者: 晋鹏 | 标签: 装置,四月,解决 | 浏览: 2805

[root@localhost bin]# service docker start
Redirecting to /bin/systemctl start docker.service
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 bin]# systemctl status docker.service
● docker.service - Docker Application Container Engine
  Loaded: loaded (/etc/systemd/system/docker.service; disabled; vendor preset: disabled)
  Active: failed (Result: exit-code) since 四 2018-05-31 15:11:26 CST; 10s ago
  Docs: http://docs.docker.com
  Process: 1689 ExecStart=/usr/bin/dockerd registry-mirror=https://upr8fi88.mirror.aliyuncs.com registry-mirror= https://upr8fi88.mirror.aliyuncs.com -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: 1689 (code=exited, status=1/FAILURE)

5月 31 15:11:26 localhost.localdomain dockerd[1689]: userland-proxy  Use userland proxy for loopback traffic (default true)
5月 31 15:11:26 localhost.localdomain dockerd[1689]: userland-proxy-path string  Path to the userland proxy binary
5月 31 15:11:26 localhost.localdomain dockerd[1689]: userns-remap string  User/Group setting for user namespaces
5月 31 15:11:26 localhost.localdomain dockerd[1689]: -v, version  Print version information and quit
5月 31 15:11:26 localhost.localdomain dockerd[1689]: Run dockerd COMMAND help for more information on a command.
5月 31 15:11:26 localhost.localdomain dockerd[1689]: , Code: 125
5月 31 15:11:26 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
5月 31 15:11:26 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
5月 31 15:11:26 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
5月 31 15:11:26 localhost.localdomain systemd[1]: docker.service failed.




解决方法:


[root@zwz ~]# yum remove docker
[root@zwz ~]# yum remove docker-selinux

[root@zwz]# vi  /etc/yum.repos.d/docker.repo

[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
[root@zwz]#
[root@zwz]# yum install docker-engine

已装置:
  docker-engine.x86_64 0:1.10.2-1.el7.centos 

作为依靠被装置:
  docker-engine-selinux.noarch 0:1.10.2-1.el7.centos 
[root@zwz]#
[root@zwz]# service docker start
Redirecting to /bin/systemctl start  docker.service



我的是因为修改了镜像加快导致相似过错无法发动
版权声明
本文来源于网络,版权归原作者所有,其内容与观点不代表娱乐之横扫全球立场。转载文章仅为传播更有价值的信息,如采编人员采编有误或者版权原因,请与我们联系,我们核实后立即修改或删除。

猜您喜欢的文章