Skip to content

Commit 70ad46b

Browse files
authored
Merge pull request #147 from sALTaccount/patch-1
make persistent volume documentation a bit more clear
2 parents db5e315 + 42d9f6f commit 70ad46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/persistent-apps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The main limitation of apps with Persistent Data is that they cannot be run as m
2121
Note that even for Persistent Apps, NOT ALL DIRECTORIES will be treated as persistent directories. After you created the app as an app with persistent data, you'll have to define directories that you want to be persistent in the app details page on web dashboard. You can let CapRover manage the stored directories for you (use labels), or use a specific path on the host (server).
2222

2323
##### Using label
24-
In that case, they will be placed in `/var/lib/docker/volumes/YOUR_VOLUME_NAME/_data` on your server. The path inside the container is completely customizable.
24+
In that case, they will be placed in `/var/lib/docker/volumes/YOUR_VOLUME_NAME/_data` on your server. The path inside the container is completely customizable. By default, the volume name will have `captain--` prepended to the field you enter (e.g. `my-volume` will become `captain--my-volume`)
2525

2626
##### Using specific path
2727
For example, you can map `/var/usr` on your server to `/my-host-usr-something` in your container (app). This way you can save a file in your container at `/my-host-usr-something/myfile.txt` and the file will be available on your server (host) at `/var/usr/myfile.txt`. **Note** that, if you choose to use this option (specifying a specific host path), you'll have to make sure that the path already exists in your host before assigning it.

0 commit comments

Comments
 (0)