为了账号安全,请及时绑定邮箱和手机立即绑定

CentOS7 启动docker.service失败

CentOS7 启动docker.service失败

Helenr 2019-04-16 20:26:21
Hiall:在CentOS7上执行yuminstalldocker安装docker后,对docker进行测试出现如下错误:[root@localhost/]#dockerrun-i-tubuntu/bin/bash2014/11/2715:21:52Posthttp:///var/run/docker.sock/v1.14/containers/create:readunix/var/run/docker.sock:connectionresetbypeer搜索后得知是没有启动docker服务,执行启动服务失败:[root@localhost/]#systemctlstartdocker.serviceJobfordocker.servicefailed.See'systemctlstatusdocker.service'and'journalctl-xn'fordetails.[root@localhost/]#systemctlstatusdocker.servicedocker.service-DockerApplicationContainerEngineLoaded:loaded(/usr/lib/systemd/system/docker.service;disabled)Active:failed(Result:start-limit)sinceThu2014-11-2715:03:24CST;13sagoDocs:http://docs.docker.ioProcess:4559ExecStart=/usr/bin/docker-d$OPTIONS$DOCKER_STORAGE_OPTIONS(code=exited,status=1/FAILURE)MainPID:4559(code=exited,status=1/FAILURE)Nov2715:03:24localhost.localdomainsystemd[1]:docker.service:mainproces...Nov2715:03:24localhost.localdomainsystemd[1]:FailedtostartDockerAppl...Nov2715:03:24localhost.localdomainsystemd[1]:Unitdocker.serviceentered...Nov2715:03:24localhost.localdomainsystemd[1]:docker.serviceholdofftime...Nov2715:03:24localhost.localdomainsystemd[1]:StoppingDockerApplication...Nov2715:03:24localhost.localdomainsystemd[1]:StartingDockerApplication...Nov2715:03:24localhost.localdomainsystemd[1]:docker.servicestartreques...Nov2715:03:24localhost.localdomainsystemd[1]:FailedtostartDockerAppl...Nov2715:03:24localhost.localdomainsystemd[1]:Unitdocker.serviceentered...Hint:Somelineswereellipsized,use-ltoshowinfull.请问是什么问题???
查看完整描述

2 回答

?
繁花不似锦

TA贡献1851条经验 获得超4个赞

如果是配置了国内镜像,并且镜像文件为/etc/docker/daemon.json,则修改文件后缀为.conf即可正常启动docker服务
                            
查看完整回答
反对 回复 2019-04-16
  • 2 回答
  • 0 关注
  • 4118 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信