安裝linux,須要系統內核爲3.x以上,若是centos版本爲7如下,先升級系統內核linux
1.關閉selinuxdocker
setenforce 0 sed -i '/^SELINUX=/c\SELINUX=disabled' /etc/selinux/config
2.下載安裝epelcentos
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-iocode
yum -y install docker-io
4.啓動dockerblog
service docker start
5.查看docker版本get
docker version