一.升级内核
[[email protected] ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org [[email protected] ~]# rpm -ivh http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm [[email protected] ~]# yum --enablerepo=elrepo-kernel install kernel-lt -y [[email protected] ~]# vim /etc/grub.conf default=0 [[email protected] ~]# reboot [[email protected] ~]# uname -a Linux iZ2893wjzgyZ 3.10.65-1.el6.elrepo.x86_64 #1 SMP Sat Jan 17 10:36:35 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
二.安装docker
[[email protected] ~]# yum install http://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch.rpm [[email protected] ~]# yum install docker-io
三.启动docker
[[email protected] ~]# service docker start Starting cgconfig service: [ OK ] Starting docker: [ OK ]
时间: 2024-10-13 18:37:08