mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-04-15 19:05:41 +00:00
13 lines
592 B
HTML
13 lines
592 B
HTML
<div>
|
|
<p>Rancher uses <code>etcd</code> as datastore. When using the Single Node Install, the embedded <code>etcd</code> is be 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.</p>
|
|
|
|
<p><b>Command</b></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 /host/rancher:/var/lib/rancher \
|
|
rancher/rancher:latest
|
|
</pre>
|
|
</div>
|