Docker Installation and CentOS Kernel Upgrade
1.installationDocker
[email protected] ~]# sudo yum installhttp://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
[email protected] ~]# sudo yum install Docker-io
[[Email protected] ~]# service Docker start
[[email protected] ~]# Chkconfig Docker on
[email protected] ~]# Yum install git-y
2.kernel version too low,Upgrading the Kernel
[email protected] ~]# Docker pulldaocloud.io/library/nginx:1.9.9//pull Mirror times wrong Let's do docker-d
Cannot connect to the Docker daemon. Is ' docker-d ' running on this host?
[Email protected] ~]# docker-d
warn[0000] Running Linux kernel version2.6.32-431.el6.x86_64, which might be unstable running Docker. Upgradeyour kernel to 3.10.0. Tip Kernel version number is too low
INFO[0000] Listening for HTTP on Unix (/var/run/docker.sock)
3.Upgrading the Kernel
RPM-IVH http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
Yum--enablerepo=elrepo-kernelinstallkernel-ml-y
4. EditGrub.conffiles, modifyingGrubBoot order
Vim/etc/grub.conf
# grub.conf generated by Anaconda
#
# Note that you don't have the to rerun grub aftermaking changes to the This file
# notice:you does not have a/boot partition. This means
# all kernel and INITRD paths is relative to/, eg.
# root (hd0,0)
# kernel/boot/vmlinuz-version RO root=/dev/sda1
# initrd/boot/initrd-[generic-]version.img
#boot =/DEV/SDA
Default=0
Timeout=5
Splashimage= (hd0,0)/grub/splash.xpm.gz
Hiddenmenu
Title CentOS (4.4.0-1.el6.elrepo.x86_64)
Root (hd0,0)
kernel/vmlinuz-4.4.0-1.el6.elrepo.x86_64 ro Root=/dev/mapper/vg_gmdai-lv_rootrd_no_luks rd_LVM_LV=vg_gmdai/lv_ Swap Rd_no_md Rd_lvm_lv=vg_gmdai/lv_rootcrashkernel=auto. UTF-8 keyboardtype=pc keytable=us rd_no_dm rhgb quiet
Initrd/initramfs-4.4.0-1.el6.elrepo.x86_64.img
Title CentOS (2.6.32-431.el6.x86_64)
Root (hd0,0)
kernel/vmlinuz-2.6.32-431.el6.x86_64 roroot=/dev/mapper/vg_gmdai-lv_root Rd_no_luks Rd_LVM_LV=vg_gmdai/lv_swap rd_ No_mdrd_lvm_lv=vg_gmdai/lv_root Crashkernel=auto. UTF-8 keyboardtype=pc keytable=us rd_no_dm rhgbquiet
Initrd/initramfs-2.6.32-431.el6.x86_64.img
verify where the newly installed kernel is located,Then Setdefaultvalue(from0Start),generally the newly installed kernel is in the first position,so setdefault=0.
5, reboot, view kernel version number
[Email protected] ~]# uname-r
4.4.0-1.el6.elrepo.x86_64
This article is from the "Technology House private Space" blog, please be sure to keep this source http://chulinx.blog.51cto.com/4098114/1763053
Docker Installation and kernel upgrades