Docker install upgrade Linux kernel (2.6.32->3.10.81), installation successful!

Source: Internet
Author: User

Upgrade the Linux kernel (2.6.32->3.10.81), install Docker1. Kernel Upgrade Environment preparation


#查看已经安装的和未安装的软件包组,来判断我们是否安装了相应的开发环境和开发库;
yum grouplist
#一般是安装这两个软件包组,这样做会确定你拥有编译时所需的一切工具
yum groupinstall "Development Tools"
#你必须这样才能让 make *config 这个指令正确地执行
yum install ncurses-devel
#如果你没有 X 环境,这一条可以不用
yum install qt-devel
#创建 CentOS-6 内核时需要它们
yum install hmaccalc zlib-devel binutils-devel elfutils-libelf-devel

2. Start upgrading the kernel:
Cd/usr/src/linux-3.10. Bayi#复制原内核配置 Cp/boot/config-2.6.-71. el6.x86_64. config vim. config/ * Add the following to the. config and save config_nf_nat_ipv4=y config_ip_nf_target_masquerade=y Config_netfilter_xt_match_addrty Pe=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 * *#编辑内核配置, open kernel cgroup support MakeMenuconfig #选择General setup-->control Group support->memory Resource Controller forControl groups select #自动整理. config sh-c' Yes ' | Make Oldconfig '#编译并安装内核 (J8 generationTable 8Threads are compiled at the same time, set according to your machine condition) Make-j8 Bzimage && Make-J8 Modules && Make-j8 Modules_install && MakeInstall vim/etc/grub.conf Modifydefault=0Save. That is, choose to boot Linux from your newly compiled kernel. #重启 reboot #注意: Recompile the kernel, run Cd/usr/src/linux-3.10. Bayi  MakeMrproper MakeClean
3. Installing Docker
#启动后uname -r返回3.10.81表示内核安装并启动成功#rehl的docker安装说明https://docs.docker.com/installation/rhel/#如下是安装说明的简化:#a.下载docker的rpmwget https://get.docker.com/rpm/1.7.0/centos-6/RPMS/x86_64/docker-engine-1.7.0-1.el6.x86_64.rpm#本地安装rpm包 sudo yum localinstall --nogpgcheck docker-engine-1.7.0-1.el6.x86_64.rpm#启动docker服务sudo service docker start#docker image
4.FAQ There are two problems that have not been solved
erro[0000] [Graphdriver] Prior storage driver"Devicemapper"Failed:exit status1fata[0000] Error starting daemon:error initializing Graphdriver:exit status1#1. Prior storage Driver "Devicemapper" failed:exit status 1Yum Upgrade Device-mapper-libs#error initializing Graphdriversudo yum install-yHttp://mirror. CentOS. org/centos/6.6/os/x86_64/packages/device-mapper-libs-1.02.-2.El6. x86_64. RPMHttp://mirror. CentOS. org/centos/6.6/os/x86_64/packages/device-mapper-1.02.-2.El6. x86_64. RPMHttp://mirror. CentOS. org/centos/6.6/os/x86_64/packages/device-mapper-event-1.02.-2.El6. x86_64. RPMHttp://mirror. CentOS. org/centos/6.6/os/x86_64/packages/device-mapper-event-libs-1.02.-2.El6. x86_64. RPMHttps://dl. Fedoraproject. org/pub/epel/testing/6/x86_64/docker-io-1.6. 2-1.El6. x86_64. RPM
5. Installing the Aufs file system

Cd/etc/yum.repos.d
wget Http://www.hop5.in/yum/el6/hop5.repo
Yum Install Kernel-ml-aufs
Docker-d-S Aufs #使用aufs文件系统启动docker服务

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Docker install upgrade Linux kernel (2.6.32->3.10.81), installation successful!

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.