From c11941eadbac1bf21ee4d9c61ea768a788b13aac Mon Sep 17 00:00:00 2001 From: Lewis Roy Date: Sat, 27 Sep 2025 15:38:43 +1000 Subject: [PATCH] [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 --- docs/source/markdown/options/mount.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/markdown/options/mount.md b/docs/source/markdown/options/mount.md index bf03d05099..b660b13640 100644 --- a/docs/source/markdown/options/mount.md +++ b/docs/source/markdown/options/mount.md @@ -60,6 +60,8 @@ Options specific to type=**volume**: - *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. +- *subpath*: Mount only a specific subpath within the volume, instead of the whole volume. + - *idmap*: If specified, create an idmapped mount to the target user namespace in the container. 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. The idmap option supports a custom mapping that can be different than the user namespace used by the container. @@ -139,3 +141,5 @@ Examples: - `type=artifact,src=quay.io/libpod/testartifact:20250206-single,dst=/data` - `type=artifact,src=quay.io/libpod/testartifact:20250206-multi,dst=/data,title=test1` + +- `type=volume,src=test_vol,dst=/data,subpath=/code/docs`