`
1025037250
  • 浏览: 10732 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

docker 添加镜像加速器后出现问题

阅读更多
[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



我的是因为修改了镜像加速导致类似错误无法启动
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics