Skip to content

Commit c11941e

Browse files
committed
[DOCS] Update volume mount docs for subpath support
Support for the subpath option was added the named volume mount type in [1] however this was missed from the docs. [1] https://github.com/containers/podman/pull/24532` Signed-off-by: Lewis Roy <[email protected]>
1 parent a118fdf commit c11941e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/source/markdown/options/mount.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Options specific to type=**volume**:
6060

6161
- *U*, *chown*: *true* or *false* (default if unspecified: *false*). Recursively change the owner and group of the source volume based on the UID and GID of the container.
6262

63+
- *subpath*: Mount only a specific subpath within the volume, instead of the whole volume.
64+
6365
- *idmap*: If specified, create an idmapped mount to the target user namespace in the container.
6466
The idmap option is only supported by Podman in rootful mode. The Linux kernel does not allow the use of idmapped file systems for unprivileged users.
6567
The idmap option supports a custom mapping that can be different than the user namespace used by the container.
@@ -139,3 +141,5 @@ Examples:
139141
- `type=artifact,src=quay.io/libpod/testartifact:20250206-single,dst=/data`
140142

141143
- `type=artifact,src=quay.io/libpod/testartifact:20250206-multi,dst=/data,title=test1`
144+
145+
- `type=volume,src=test_vol,dst=/data,subpath=/code/docs`

0 commit comments

Comments
 (0)