安装linux,需要系统内核为3.x以上,如果centos版本为7以下,先升级系统内核
1.关闭selinux
setenforce 0 sed -i '/^SELINUX=/cSELINUX=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