1. 解决方式1(无效)
yum没有找到docker包,更新epel第三方软件库,
运行:sudo yum install epel-release
运行:sudo yum install docker-io
已测试无法使用
2. 解决方式2(无效)
yum install epel-release
yum install docker-io
执行上面两行命令后报错:No package docker-io available,
执行下面两行命令:
cd /etc/yum.repos.d
sudo wget http://www.hop5.in/yum/el6/hop5.repo
再次执行:
yum install docker-io
已测试,无法使用,虽然安装成功了,但是无法运行:
3. 解决方式3(成功解决)
rpm手动下载安装:
yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm
4. docker的卸载
5. 使用方式3重新安装docker
[root@hadoop1 ~]# yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
docker-engine-1.7.1-1.el6.x86_64.rpm | 4.5 MB 02:02
诊断 /var/tmp/yum-root-JwBMm0/docker-engine-1.7.1-1.el6.x86_64.rpm: docker-engine-1.7.1-1.el6.x86_64
/var/tmp/yum-root-JwBMm0/docker-engine-1.7.1-1.el6.x86_64.rpm 将被安装
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
解决依赖关系
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> 执行事务检查
---> Package docker-engine.x86_64 0:1.7.1-1.el6 will be 安装
--> 完成依赖关系计算
依赖关系解决
====================================================================================================================================================
软件包 架构 版本 仓库 大小
====================================================================================================================================================
正在安装:
docker-engine x86_64 1.7.1-1.el6 /docker-engine-1.7.1-1.el6.x86_64 19 M
事务概要
====================================================================================================================================================
Install 1 Package(s)
总文件大小:19 M
Installed size: 19 M
确定吗?[y/N]:y
下载软件包:
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装 : docker-engine-1.7.1-1.el6.x86_64 1/1
Verifying : docker-engine-1.7.1-1.el6.x86_64 1/1
已安装:
docker-engine.x86_64 0:1.7.1-1.el6
完毕!
测试: