标签:编辑 div install import etc ase 关闭 http nbsp
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
#最新版 yum –enablerepo=elrepo-kernel install -y kernel-ml #稳定版 yum --enablerepo=elrepo-kernel install kernel-lt -y
vim /etc/grub.conf #title顺序从上往下 0,1,2 #默认新装的应该排在最上面 #所以把default值改成0 default=0
reboot
cat /etc/issue uname -ir #或者uname -a
#安装docker #1.关闭selinux setenforce 0 sed -i ‘/^SELINUX=/c\SELINUX=disabled‘ /etc/selinux/config #2.下载安装epel wget http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm sed -i ‘s/^mirrorlist=https/mirrorlist=http/‘ /etc/yum.repos.d/epel.repo #3.安装docker-io yum -y install docker-io #4.启动docker service docker start #5.查看docker版本 docker version #或者docker -v
标签:编辑 div install import etc ase 关闭 http nbsp
原文地址:https://www.cnblogs.com/wxdblog/p/8973286.html