From 096084816fedd1b4a450809c8929825ea0c1061c Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Sat, 9 Mar 2019 21:05:02 +0100 Subject: [PATCH] Change persistent directory to a RancherOS persisted directory by default --- layouts/shortcodes/persistentdata.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/persistentdata.html b/layouts/shortcodes/persistentdata.html index 26110d682b4..91d841be675 100644 --- a/layouts/shortcodes/persistentdata.html +++ b/layouts/shortcodes/persistentdata.html @@ -1,12 +1,12 @@
-

Rancher uses etcd as datastore. When using the Single Node Install, 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.

+

Rancher uses etcd as datastore. When using the Single Node Install, 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. When using RancherOS, please check what persistent storage directories you can use to store the data.

Command:
 docker run -d --restart=unless-stopped \
   -p 80:80 -p 443:443 \
-  -v /host/rancher:/var/lib/rancher \
+  -v /opt/rancher:/var/lib/rancher \
   rancher/rancher:latest