更新centos内核
查看当前内核版本
[root@localhost ~]# more /etc/issue
CentOS release 6.5 (Final)
Kernel
on an m
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
发现低于3.1.0,更新内核版本到3.1
导入Public key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
提示如下报错:
curl: (35) SSL connect error
解决方法:升级网络安全服务即可。
yum update nss
安装ELRepo到CentOS
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
报错:
Retrieving http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
curl: (22) The requested URL returned error: 404 Not Found
error: skipping http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm - transfer failed
解决:
这表示对应的URL已经不存在,需要重新找EPEL的版本,请前往 http://elrepo.org/tiki/tiki-index.php
更新为:
rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
安装kernel-lt
yum --enablerepo=elrepo-kernel install kernel-lt -y
修改grub
修改启动grub, 将default改成0:
vim /etc/grub.conf
default=0
timeout=5
重启
reboot
安装Docker
安装
yum install -y docker-io
查看版本,并升级
docker version
升级:
curl -sSL -O https://get.docker.com/builds/Linux/x86_64/docker-1.9.1
chmod +x docker-1.9.1
cp /usr/bin/docker /usr/bin/docker.bak
mv docker-1.9.1 /usr/bin/docker