docker遇到问题六:centos6 yum安装docker失败,提示“No package docker-io available”

安装

使用yum安装docker,执行yum -y install docker-io,提示信息如下:

[root@host-10-200-143-61 ~]# yum -y install docker-io
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
No package docker-io available.
Error: Nothing to do

排查原因

开始以为是没有升级yum导致安装失败的,而是执行yum -y update 成功后再次执行yum -y install docker-io,依然失败

解决方法

Google了下,在stackoverflow上找到解决方案,链接地址:https://stackoverflow.com/questions/28483379/installing-docker-on-centos-6-6,如下图:
docker遇到问题六:centos6 yum安装docker失败,提示“No package docker-io available”_第1张图片

按照上面执行命令yum -y install epel-release,然后在执行命令yum -y install docker-io,最后docker成功安装好了

[root@host-10-200-143-60 docker]# docker --version
Docker version 1.7.1, build 786b29d/1.7.1

你可能感兴趣的:(docker)