Docker installs and upgrades the Linux kernel (2.6.32-> 3.10.81). The installation is successful !, Docker2.6.32-
Upgrade the Linux kernel (2.6.32-> 3.10.81) and install the docker1. prepare the kernel upgrade environment.
# Check the installed and uninstalled Software Package groups to determine whether the corresponding development environment and development library are installed;
Yum grouplist
# Install these two software packages to ensure that you have all the tools required for compilation.
Yum groupinstall "Development Tools"
# Make * config can be correctly executed only in this way
Yum install ncurses-devel
# If you do not have an X environment, you do not need to use this one.
Yum install qt-devel
# They are required when creating CentOS-6 kernels
Yum install hmaccalc zlib-devel binutils-devel elfutils-libelf-devel
2. Start to upgrade the kernel:
Cd/usr/src/linux-3.10.81 # copy the original Kernel configuration cp/boot/config-2.6.32-71.el6.x86_64. config vim. config/* Add the following content. config and save CONFIG_NF_NAT_IPV4 = y region = y CONFIG_AUFS_FS = y region = y CONFIG_OVERLAY_FS = y region = y CONFIG_CFS_BANDWIDTH = y HYPERVISOR_GUEST = y CONFIG_VMWARE_BAL LOON = m */# edit the Kernel configuration and enable kernel CGROUP to support make menuconfig # select General setup --> Control Group support-> Memory Resource Controller for Control Groups selected # automatically organize. config sh-c 'yes "" | make oldconfig' # compile and install the kernel (j8 indicates that 8 threads are compiled at the same time. Please set it based on your machine situation) make-j8 bzImage & make-j8 modules & make-j8 modules_install & make install vim/etc/grub. conf modify default = 0 save. That is, choose to start linux from your new compiled kernel. # Restart reboot # Note: to recompile the kernel, run cd/usr/src/linux-3.10.81 make mrproper make clean
3. Install docker
# Uname-r return 3.10.81 after startup indicates kernel installation and startup is successful # rehl docker installation instructions zookeeper sudo yum localinstall -- nogpgcheck docker-engine-1.7.0-1.el6.x86_64.rpm # start docker service sudo service docker start # docker image
4. The FAQ has two problems that have not been resolved.
ERRO[0000] [graphdriver] prior storage driver "devicemapper" failed: exit status 1FATA[0000] Error starting daemon: error initializing graphdriver: exit status 1#1.prior storage driver "devicemapper" failed: exit status 1yum upgrade device-mapper-libs#error initializing graphdriversudo yum install -y http://mirror.centos.org/centos/6.6/os/x86_64/Packages/device-mapper-libs-1.02.90-2.el6.x86_64.rpm http://mirror.centos.org/centos/6.6/os/x86_64/Packages/device-mapper-1.02.90-2.el6.x86_64.rpm http://mirror.centos.org/centos/6.6/os/x86_64/Packages/device-mapper-event-1.02.90-2.el6.x86_64.rpm http://mirror.centos.org/centos/6.6/os/x86_64/Packages/device-mapper-event-libs-1.02.90-2.el6.x86_64.rpm https://dl.fedoraproject.org/pub/epel/testing/6/x86_64/docker-io-1.6.2-1.el6.x86_64.rpm
5. Install 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 # Use the aufs file system to start the docker Service
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.