1、安装docker
rpm -qa | grep docker
docker-engine-17.05.0.ce-1.el7.centos.x86_64
2、下载默认的docker
yum -y remove docker-engine-17.05.0.ce-1.el7.centos.x86_64
3、安装rancher支持的17.06.x-ce版本的docker
curl https://releases.rancher.com/install-docker/17.06.sh | sh
4、设置docker开机启动
/bin/systemctl enable docker.service
5、下载rancher
docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:preview
网友评论