Docker 17无法在Centos 7中启动

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker 17无法在Centos 7中启动相关的知识,希望对你有一定的参考价值。

我们在Centos 7.x中安装了docker 17.12,安装完成后,在尝试启动docker服务时遇到错误。最初我尝试使用systemctl docker start然后获取更多输出,当我尝试使用journalctl时,它说docker.service进入了失败状态。更多详细信息如下

Docker :
17.12.1-ce , build 7390fc6

Command tried:
sudo systemctl start docker
journalctl -u docker.service

Expected Output:
Docker service should be started successfully

Actual output:
Mar 26 23:51:19  docker[16420]: See 'docker --help'
Mar 26 23:51:19  systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 26 23:51:19  systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:51:19  systemd[1]: Unit docker.service entered failed state.
Mar 26 23:51:19  docker.service failed.
Mar 26 23:51:21  systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 26 23:51:21 systemd[1]: start request repeated too quickly for docker.service
Mar 26 23:51:21  systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:51:21  systemd[1]: Unit docker.service entered failed state.
Mar 26 23:51:21  systemd[1]: docker.service failed.
Mar 26 23:52:22  systemd[1]: Starting Docker Application Container Engine...
Mar 26 23:52:22  docker[16582]: docker: 'daemon' is not a docker command.
Mar 26 23:52:22  docker[16582]: See 'docker --help'
Mar 26 23:52:22  systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 26 23:52:22  systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:52:22  systemd[1]: Unit docker.service entered failed state.
Mar 26 23:52:22  systemd[1]: docker.service failed.                                                                                  
Mar 26 23:52:24  systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 26 23:52:24  systemd[1]: Starting Docker Application Container Engine...
Mar 26 23:52:25  docker[16601]: docker: 'daemon' is not a docker command.
Mar 26 23:52:25  docker[16601]: See 'docker --help'
Mar 26 23:52:25  systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 26 23:52:25  systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:52:25  systemd[1]: Unit docker.service entered failed state.
Mar 26 23:52:25  systemd[1]: docker.service failed.
Mar 26 23:52:27  systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 26 23:52:27  systemd[1]: Starting Docker Application Container Engine...
Mar 26 23:52:27  docker[16619]: docker: 'daemon' is not a docker command.
Mar 26 23:52:27  docker[16619]: See 'docker --help'
Mar 26 23:52:27  systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 26 23:52:27  systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:52:27  systemd[1]: Unit docker.service entered failed state.
Mar 26 23:52:27  systemd[1]: docker.service failed.
Mar 26 23:52:29  systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 26 23:52:29  systemd[1]: start request repeated too quickly for docker.service
Mar 26 23:52:29  systemd[1]: Failed to start Docker Application Container Engine.
Mar 26 23:52:29  systemd[1]: Unit docker.service entered failed state.
Mar 26 23:52:29  systemd[1]: docker.service failed.

请检查此问题并帮助我们解决docker start问题

答案

你的日志中没有证据。

你会以官方的方式重新安装吗?

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sh get-docker.sh

以上是关于Docker 17无法在Centos 7中启动的主要内容,如果未能解决你的问题,请参考以下文章

centos 7.x 安装docker1.17.x

CentOS 7 Docker

CentOS7.X首次安装docker无法启动的问题解决

腾讯云centos无法安装docker安装上也启动失败求解换了多个版本系统都不行

CentOS-7下Docker 17.12安装

CentOS 7 中 Docker 的安装