centos 6.3 docker 安装

1.升级内核
查看内核版本
uname -r
---------------------------------------------------------------------------------------------------
#升级
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-lt -y
vim /etc/grub.conf  #将新版内核default改为0
reboot

2.安装docker
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
#wget -O /etc/yum.repos.d/epel.repo http://www.hop5.in/yum/el6/hop5.repo
yum install docker-io

你可能感兴趣的:(centos 6.3 docker 安装)