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

[root@localhostbin]#servicedockerstart

Redirectingto/bin/systemctlstartdocker.service

Jobfordocker.servicefailedbecausethecontrolprocessexitedwitherrorcode.See"systemctlstatusdocker.service"and"journalctl-xe"fordetails.

[root@localhostbin]#systemctlstatusdocker.service

●docker.service-DockerApplicationContainerEngine

Loaded:loaded(/etc/systemd/system/docker.service;disabled;vendorpreset:disabled)

Active:failed(Result:exit-code)since四2018-05-3115:11:26CST;10sago

Docs:http://docs.docker.com

Process:1689ExecStart=/usr/bin/dockerd--registry-mirror=https://upr8fi88.mirror.aliyuncs.com--registry-mirror=<https://upr8fi88.mirror.aliyuncs.com>-current--add-runtimedocker-runc=/usr/libexec/docker/docker-runc-current--default-runtime=docker-runc--exec-optnative.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)

MainPID:1689(code=exited,status=1/FAILURE)

5月3115:11:26localhost.localdomaindockerd[1689]:--userland-proxyUseuserlandproxyforloopbacktraffic(defaulttrue)

5月3115:11:26localhost.localdomaindockerd[1689]:--userland-proxy-pathstringPathtotheuserlandproxybinary

5月3115:11:26localhost.localdomaindockerd[1689]:--userns-remapstringUser/Groupsettingforusernamespaces

5月3115:11:26localhost.localdomaindockerd[1689]:-v,--versionPrintversioninformationandquit

5月3115:11:26localhost.localdomaindockerd[1689]:Run'dockerdCOMMAND--help'formoreinformationonacommand.

5月3115:11:26localhost.localdomaindockerd[1689]:,Code:125

5月3115:11:26localhost.localdomainsystemd[1]:docker.service:mainprocessexited,code=exited,status=1/FAILURE

5月3115:11:26localhost.localdomainsystemd[1]:FailedtostartDockerApplicationContainerEngine.

5月3115:11:26localhost.localdomainsystemd[1]:Unitdocker.serviceenteredfailedstate.

5月3115:11:26localhost.localdomainsystemd[1]:docker.servicefailed.

解决方法:

[root@zwz~]#yumremovedocker

[root@zwz~]#yumremovedocker-selinux

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

[dockerrepo]

name=DockerRepository

baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/

enabled=1

gpgcheck=1

gpgkey=https://yum.dockerproject.org/gpg

[root@zwz]#

[root@zwz]#yuminstalldocker-engine

已安装:

docker-engine.x86_640:1.10.2-1.el7.centos

作为依赖被安装:

docker-engine-selinux.noarch0:1.10.2-1.el7.centos

[root@zwz]#

[root@zwz]#servicedockerstart

Redirectingto/bin/systemctlstartdocker.service

我的是因为修改了镜像加速导致类似错误无法启动

相关推荐