安装环境
支持Docker的RHEL版本
Red Hat Enterprise Linux 7 (64-bit)
Red Hat Enterprise Linux 6.5 (64-bit) 或更高版本
不论是RHEL的哪个版本,Docker都要求是64位的安装环境。RHEL 6的内核版本必须是2.6.32-431或者更高。查看内核版本:
# uname -r
安装docker
安装前的准备
1.安装libcgroup(该软件包提供了一系列工具和库文件用于控制和管理控制组)
# rpm -ivh libcgroup-0.40.rc1-6.el6_5.1.x86_64.rpm
libcgroup软件包下载地址:ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.5/x86_64/updates/fastbugs/libcgroup-0.40.rc1-6.el6_5.1.x86_64.rpm
2.更新yum源
# rpm -ivh epel-release-latest-6.noarch.rpm
epel-release-latest软件包下载地址:https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
安装docker-io
1.使用yum
软件包管理器安装docker-io:
# yum install docker-io
已加载插件:product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
设置安装进程
epel/metalink | 4.4 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:02
解决依赖关系
--> 执行事务检查
---> Package docker-io.x86_64 0:1.7.1-2.el6 will be 安装
--> 处理依赖关系 lxc,它被软件包 docker-io-1.7.1-2.el6.x86_64 需要
--> 执行事务