Docker is now generally deployed in systems above linux7. It requires that the Linux system kernel be in version 3.8 or higher. View Version command: uname-a
When the general Linux system is below 7, its kernel version is 2 points.
Uname-r2.6.32-358.11.1.el6.x86_64
Kernel Upgrade:
1. Import Public key
RPM--import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
1.2 Download the source package
Go to http://www.kernel.org Home, download the source package
wget unzip the tar XF Linux-3.11.6.tar.xz
#查看已经安装的和未安装的软件包组 to determine if we have installed the appropriate development environment and development library;Yum grouplist#一般是安装这两个软件包组, this will make sure you have all the tools you need to compile
Yum Groupinstall "Development Tools"
#你必须这样才能让 make *config this command to execute correctly
Yum Install Ncurses-devel
#如果你没有 X Environment, this one can be used without
Yum Install Qt-devel
They are required #创建 CentOS-6 cores
Yum Install hmaccalc zlib-devel binutils-devel elfutils-libelf-devel
1.3 Update the current system (this step can first try not to do, directly below the 2)
sudo yum update
2. Start upgrading the kernel:
cd linux-3.11.6 #复制原内核配置 cp /boot/config-2.6.32-358.el6.x86_64 .config vim .config Add the following chase to .config and save (append to file last) config_nf_nat_ipv4= Y config_ip_nf_target_masquerade=y config_netfilter_xt_match_ addrtype=y config_memcg_swap=y config_memcg_swap_enabled=y CONFIG_AUFS_FS=y CONFIG_DM_THIN_PROVISIONING=y config_overlay_fs=y config_cgroup_perf=y config_cfs_ bandwidth=y hypervisor_guest=y config_vmware_balloon=m # Edit kernel configuration, open kernel Cgroup support make menuconfig #选择General setup-->Control Group Support->memory resource controller for control groups selected (select Save. OK) # automatically organize. config
#重启 reboot
In view:
# Uname-r
3.11.6
(The kernel has risen from 2 to 3 points to 11.) You can install Docker. LINUX6 series)
This article is from the "12336621" blog, please be sure to keep this source http://12346621.blog.51cto.com/12336621/1932116
Docker (Linux kernel upgrade)