1.下载docker1.12.3镜像:docker-engine-1.12.3-1.el7.centos.x86_64.rpm(此版本可兼容rancher及k8s) :wget https://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-1.12.3-1.el7.centos.x86_64.rpm
2.安装依赖工具包:yum -y install docker-engine-selinux libcgroup libseccomp libtool-ltdl。
3.安装docker镜像:rpm -ivh docker-engine-1.12.3-1.el7.centos.x86_64.rpm.
4.启动docker:service docker start,设置开机启动:chkconfig docker on
4.rancher server安装rancher(仅rancher server):sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server
5.