centos6.8默认的内核版本为2.6 而docker安装要求为系统64位 内核版本3以上 所以需要对内核版本进行更新
最好先看看系统的selinux是否关闭 如果没关闭先关闭 SELINUX设置为disabled
vi /etc/selinux/config
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
首先更新key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
再下载Elrepo 目前最新版本为6-8 如果下载不了可以进www.elrepo.org官网找最新的
rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
之后使用yum在Elrepo升级内核
yum --enablerepo=elrepo-kernel install kernel-lt -y