CentOS7 启动docker.service失败

Hiall:
在CentOS7上执行yuminstalldocker安装docker后,对docker进行测试出现如下错误:
[root@localhost/]#dockerrun-i-tubuntu/bin/bash
2014/11/2715:21:52Posthttp:///var/run/docker.sock/v1.14/containers/create:readunix/var/run/docker.sock:connectionresetbypeer
搜索后得知是没有启动docker服务,执行启动服务失败:
[root@localhost/]#systemctlstartdocker.service
Jobfordocker.servicefailed.See'systemctlstatusdocker.service'and'journalctl-xn'fordetails.
[root@localhost/]#systemctlstatusdocker.service
docker.service-DockerApplicationContainerEngine
Loaded:loaded(/usr/lib/systemd/system/docker.service;disabled)
Active:failed(Result:start-limit)sinceThu2014-11-2715:03:24CST;13sago
Docs:http://docs.docker.io
Process: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.
请问是什么问题???
Helenr
浏览 4120回答 2
2回答

繁花不似锦

如果是配置了国内镜像,并且镜像文件为/etc/docker/daemon.json,则修改文件后缀为.conf即可正常启动docker服务
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript