mobiledu2502875577 发布于 2017-05-08 23:42

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.

请问是什么问题???

6 个回答
  • 貌似我之前修改了/etc/selinux/config,把SELINUX=enforcing改成了SELINUX=disabled。改回去就可以了

    2017-05-11 03:23 回答
  • 到/var/run把docker.pid删掉重启可以么

    2017-05-10 00:51 回答
  • 启动的时候 sudo systemctl start docker 可以么?

    2017-05-11 21:54 回答
  • yum install device-mapper-event-libs
    

    安装 device-mapper-event-libs

    2017-05-09 09:16 回答
  • You need to install device-mapper-event-libs and then it works. Just do sudo yum install device-mapper-event-libs after you install docker.

    2017-05-11 04:59 回答
  • 代闓发票有需要请联系我手机微信13640241413
    回答问题...

    2020-04-01 14:36 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
活跃用户
  • 1
    问道摩托
  • 2
    袁广龙976丶
  • 3
    逍遥子
  • 4
    亮仔
  • 5
    芙蓉花
  • 6
    作小die_syj
  • 7
    王丽珠景平怡伦_621
  • 8
    adfa3sd5f6a
  • 9
    欣欣大妮
  • 10
    sfasfs
PHP1.CN | 中国最专业的PHP中文社区 | PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | PHP问答
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved PHP1.CN 第一PHP社区 版权所有