CentOS 6.5 install docker准备工作

CentOS 6.5 install docker准备工作
主要是针对linux内核做升级来完成

1.下载

kernel-ml-aufs-3.10.5-12.1.x86_64.rpm
kernel-ml-aufs-devel-3.10.5-12.1.x86_64.rpm

http://rpm.pbone.net/index.php3/stat/4/idpl/23675425/dir/centos_6/com/kernel-ml-aufs-devel-3.10.5-12.1.x86_64.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/23675424/dir/centos_6/com/kernel-ml-aufs-3.10.5-12.1.x86_64.rpm.html

2.安装(有点慢,一定要等rpm安装完全完成,否则内核解压会有问题)

[root@mzhang Downloads]# rpm -ivh kernel-ml-aufs-3.10.5-12.1.x86_64.rpm  kernel-ml-aufs-devel-3.10.5-12.1.x86_64.rpm
warning: kernel-ml-aufs-3.10.5-12.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 41df2091: NOKEY
Preparing...                ########################################### [100%]
   1:kernel-ml-aufs-devel   ########################################### [ 50%]
   2:kernel-ml-aufs         ########################################### [100%]

3.修改grub的主配置文件/etc/grub.conf,修改default=1 ===>>default=0,表示第一个title下的内容为默认启动的kernel(3.10.5-12.1.x86_64)

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (3.10.5-12.1.x86_64)
        root (hd0,0)
        kernel /vmlinuz-3.10.5-12.1.x86_64 ro root=/dev/mapper/vg_mzhang-LogVolroot rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mzhang/LogVol03 rd_NO_MD SYSFONT=latarcyrheb-sun16  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_mzhang/LogVolroot rd_NO_DM rhgb quiet crashkernel=auto
        initrd /initramfs-3.10.5-12.1.x86_64.img
title CentOS (2.6.32-431.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/vg_mzhang-LogVolroot rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_mzhang/LogVol03 rd_NO_MD SYSFONT=latarcyrheb-sun16  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_mzhang/LogVolroot rd_NO_DM rhgb quiet
        initrd /initramfs-2.6.32-431.el6.x86_64.img

4.重启后验证

[root@mzhang Desktop]# uname -r
3.10.5-12.1.x86_64
[root@mzhang Desktop]# grep aufs /proc/filesystems
nodev    aufs

5.关闭selinux和防火墙(因此服务需要配置oracle数据库在上面)

[root@mzhang Desktop]# more /etc/selinux/config |grep SELINUX=
# SELINUX= can take one of these three values:
SELINUX=disabled
[root@mzhang Desktop]# chkconfig iptables off
[root@mzhang Desktop]# chkconfig --list|grep iptables
iptables           0:off    1:off    2:off    3:off    4:off    5:off    6:off