Rancher最新体验
<p>Docker 安装 Rancher 2.5.2</p>
<h1>1.拉取最新镜像</h1>
<p>当前最新版本为:2.5.2 2020.11.11</p>
<pre><code class="language-bash">docker pull rancher/rancher:latest</code></pre>
<h1>2.修改标签</h1>
<pre><code class="language-bash">docker tag rancher/rancher:latest rancher/rancher:2.5.2</code></pre>
<h1>3.启动</h1>
<pre><code class="language-bash">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</code></pre>
<p>最新的</p>
<pre><code class="language-bash">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</code></pre>
<h2>4、单节点迁移至 RKE HA</h2>
<p><a href="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">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</a></p>