Docker 安装 Rancher 2.5.2

1.拉取最新镜像

当前最新版本为:2.5.2 2020.11.11

docker pull rancher/rancher:latest

2.修改标签

docker tag rancher/rancher:latest  rancher/rancher:2.5.2

3.启动

docker run -d --restart=unless-stopped --privileged -p 80:80 -p 443:443 -v /data/rancher_home/rancher:/var/lib/rancher -v /data/rancher_home/auditlog:/var/log/auditlog --name rancher rancher/rancher:v2.5.2

最新的

docker run -d --restart=unless-stopped --privileged -p 80:80 -p 443:443 -v /data/rancher_home/rancher:/var/lib/rancher -v /data/rancher_home/auditlog:/var/log/auditlog --name rancher rancher/rancher:rancher/rancher:latest

4、单节点迁移至 RKE HA

https://docs.rancher.cn/docs/rancher2/cluster-admin/single-to-ha/_index/#1-rancher-%E5%8D%95%E8%8A%82%E7%82%B9%E5%AE%89%E8%A3%85