docker安装

标题:docker安装

安装环境:rhel6.2

安装时间:2015年8月26日 22:41:55

作者:luomg

  一、缘起    

      由于今天公司电脑被黑导致我的vm不能使用,又得重新安装软件,安装虚拟机,安装一大堆依赖累死我也,所以发誓安装一个docker环境

     二、安装步骤

                 yum --enablerepo=elrepo-kernel install kernel-lt -y

      2015年8月26日 23:06:42

      在rhel6.2中升级内核失败

      

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (3.10.87-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /vmlinuz-3.10.87-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_3mao-lv_root rd_NO_LUKS rd_LVM_LV=vg_3mao/lv_swap rd_NO_MD quiet rhgb crashkernel=auto LANG=zh_CN.UTF-8 rd_LVM_LV=vg_3mao/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.10.87-1.el6.elrepo.x86_64.img
title Red Hat Enterprise Linux Server (3.10.5-3.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-3.10.5-3.el6.x86_64 ro root=/dev/mapper/vg_3mao-lv_root rd_NO_LUKS rd_LVM_LV=vg_3mao/lv_swap rd_NO_MD quiet rhgb crashkernel=auto LANG=zh_CN.UTF-8 rd_LVM_LV=vg_3mao/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-3.10.5-3.el6.x86_64.img
title Red Hat Enterprise Linux (2.6.32-220.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-220.el6.x86_64 ro root=/dev/mapper/vg_3mao-lv_root rd_NO_LUKS rd_LVM_LV=vg_3mao/lv_swap rd_NO_MD quiet rhgb crashkernel=auto LANG=zh_CN.UTF-8 rd_LVM_LV=vg_3mao/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-220.el6.x86_64.img

已经将默认启动设置为3.0但是重启还是2.6.32-220.el6.x86_64

      redhat7安装就很简单了(如果redhat7不会安装请看:http://www.cnblogs.com/luomgf/articles/4765179.html)

      yum install docker或者curl -sSL https://get.docker.com/ | sh 都是可以的

【更新】

    2015年8月26日 23:07:58 转向rhel7.0

    2015年8月28日 00:13:47 更新rhel7中安装docker命令

    

【参考资料】

     https://docs.docker.com/installation/rhel/

     http://blog.csdn.net/samxx8/article/details/46727249

原文地址:https://www.cnblogs.com/luomgf/p/4761936.html