From 111b4cf3f595ba3ca5a8a4ceae0e15725bad5570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Rod=C3=A1k?= Date: Tue, 14 Apr 2026 11:43:02 +0200 Subject: [PATCH] Fix docs --mount source not mandatory for type=volume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Folow up: https://github.com/containers/podman/issues/28497 Signed-off-by: Jan Rodák --- docs/source/markdown/options/mount.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/source/markdown/options/mount.md b/docs/source/markdown/options/mount.md index 3ecabb35e4..52cedb2a40 100644 --- a/docs/source/markdown/options/mount.md +++ b/docs/source/markdown/options/mount.md @@ -11,7 +11,8 @@ Current supported mount TYPEs are **artifact**, **bind**, **devpts**, **glob**, Options common to all mount types: - *src*, *source*: mount source spec for **bind**, **glob**, and **volume**. - Mandatory for **artifact**, **bind**, **glob**, **image** and **volume**. + Mandatory for **artifact**, **bind**, **glob**, and **image**. + Optional for **volume**; if omitted, an anonymous volume is created. - *dst*, *dest*, *destination*, *target*: mount destination spec. @@ -142,4 +143,6 @@ Examples: - `type=artifact,src=quay.io/libpod/testartifact:20250206-multi,dst=/data,title=test1` +- `type=volume,destination=/path/in/container` + - `type=volume,src=test_vol,dst=/data,subpath=/code/docs`