centos6.8也可以安装docker的,步骤如下:
1、查看系统版本
[root@bigdata103 ~]# uname -a
Linux bigdata103 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@bigdata103 ~]# cat /etc/redhat-release
CentOS release 6.8 (Final)
[root@bigdata103 ~]#
2、安装epel
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6Server/x86_64/epel-release-6-8.noarch.rpm
或者
yum install -y http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
或者
yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
3、安装Docker
[root@bigdata103 ~]# yum install -y docker-io
已加载插件:fastestmirror, refresh-packagekit
设置安装进程
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:08
epel/metalink | 6.4 kB 00:00
epel | 4.7 kB 00:00
epel/primary_db | 6.1 MB 00:06
extras | 3.4 kB 00:00
extras/primary_db | 29 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 11 MB 00:14
No package docker-io available.
错误:无须任何处理
4、解决
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
5、启动
service network start
6、查看Docker版本
[root@bigdata103 ~]# docker -v
Docker version 1.7.1, build 786b29d