>  Q&A  >  본문

CentOS7 启动docker.service失败

Hi all:
在CentOS7上执行yum install docker安装docker后,对docker进行测试出现如下错误:

[root@localhost /]# docker run -i -t ubuntu /bin/bash
2014/11/27 15:21:52 Post http:///var/run/docker.sock/v1.14/containers/create: read unix /var/run/docker.sock: connection reset by peer

搜索后得知是没有启动docker服务,执行启动服务失败:

[root@localhost /]# systemctl start docker.service
Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
[root@localhost /]# systemctl status docker.service
docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled)
   Active: failed (Result: start-limit) since Thu 2014-11-27 15:03:24 CST; 13s ago
     Docs: http://docs.docker.io
  Process: 4559 ExecStart=/usr/bin/docker -d $OPTIONS $DOCKER_STORAGE_OPTIONS (code=exited, status=1/FAILURE)
 Main PID: 4559 (code=exited, status=1/FAILURE)

Nov 27 15:03:24 localhost.localdomain systemd[1]: docker.service: main proces...
Nov 27 15:03:24 localhost.localdomain systemd[1]: Failed to start Docker Appl...
Nov 27 15:03:24 localhost.localdomain systemd[1]: Unit docker.service entered...
Nov 27 15:03:24 localhost.localdomain systemd[1]: docker.service holdoff time...
Nov 27 15:03:24 localhost.localdomain systemd[1]: Stopping Docker Application...
Nov 27 15:03:24 localhost.localdomain systemd[1]: Starting Docker Application...
Nov 27 15:03:24 localhost.localdomain systemd[1]: docker.service start reques...
Nov 27 15:03:24 localhost.localdomain systemd[1]: Failed to start Docker Appl...
Nov 27 15:03:24 localhost.localdomain systemd[1]: Unit docker.service entered...
Hint: Some lines were ellipsized, use -l to show in full.

请问是什么问题???

黄舟黄舟2761일 전876

모든 응답(5)나는 대답할 것이다

  • 大家讲道理

    大家讲道理2017-04-21 10:58:51

    device-mapper-event-libs를 설치해야 작동합니다. docker를 설치한 후 sudo yum install device-mapper-event-libs를 실행하면 됩니다.

    회신하다
    0
  • 怪我咯

    怪我咯2017-04-21 10:58:51

    으아악

    device-mapper-event-libs 설치

    회신하다
    0
  • PHP中文网

    PHP中文网2017-04-21 10:58:51

    시작할 때 sudo systemctl start docker를 사용할 수 있나요?

    회신하다
    0
  • ringa_lee

    ringa_lee2017-04-21 10:58:51

    /var/run에서 docker.pid를 삭제하고 다시 시작할 수 있나요?

    회신하다
    0
  • PHP中文网

    PHP中文网2017-04-21 10:58:51

    전에 /etc/selinux/config를 수정하고 SELINUX=enforcing을 SELINUX=disabled로 변경한 것 같습니다. 다시 바꿔보세요

    회신하다
    0
  • 취소회신하다