Merge pull request #2842 from catherineluse/master

Add --privileged flag to install command previously in shortcode
This commit is contained in:
Catherine Luse
2020-11-12 19:18:56 -07:00
committed by GitHub
3 changed files with 26 additions and 19 deletions
@@ -83,7 +83,19 @@ If you are visiting this page to complete an air gap installation, you must prep
### Persistent Data
{{< persistentdata >}}
Rancher uses etcd as a datastore. When Rancher is installed with Docker, the embedded etcd is being used. The persistent data is at the following path in the container: `/var/lib/rancher`.
You can bind mount a host volume to this location to preserve data on the host it is running on:
```
docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \
-v /opt/rancher:/var/lib/rancher \
--privileged \
rancher/rancher:latest
```
As of Rancher v2.5, privileged access is [required.](../#privileged-access-for-rancher-v2-5)
### Running `rancher/rancher` and `rancher/rancher-agent` on the Same Node
@@ -197,7 +197,19 @@ If you are visiting this page to complete an [Air Gap Installation]({{<baseurl>}
### Persistent Data
{{< persistentdata >}}
Rancher uses etcd as a datastore. When Rancher is installed with Docker, the embedded etcd is being used. The persistent data is at the following path in the container: `/var/lib/rancher`.
You can bind mount a host volume to this location to preserve data on the host it is running on:
```
docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \
-v /opt/rancher:/var/lib/rancher \
--privileged \
rancher/rancher:latest
```
As of Rancher v2.5, privileged access is [required.](../#privileged-access-for-rancher-v2-5)
This layer 7 NGINX configuration is tested on NGINX version 1.13 (mainline) and 1.14 (stable).
-17
View File
@@ -1,17 +0,0 @@
<div>
<p>Rancher uses <code>etcd</code> as datastore. When using the Docker Install, the embedded <code>etcd</code> is
being used. The persistent data is at the following path in the container: <code>/var/lib/rancher</code>. You can
bind mount a host volume to this location to preserve data on the host it is running on. When using RancherOS,
please check what <a
href="/docs/os/v1.x/en/installation/system-services/system-docker-volumes/#user-volumes">persistent storage
directories</a> you can use to store the data.</p>
<p>Command:</p>
<pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \
-v /opt/rancher:/var/lib/rancher \
rancher/rancher:latest
</pre>
</div>