Docker (Linux kernel upgrade)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.