Skip to content

Commit c3d7c2f

Browse files
authored
Merge pull request #28506 from Honny1/fix-mount-docs-anonymous-volume
Fix docs --mount source not mandatory for type=volume
2 parents fe5cacd + 111b4cf commit c3d7c2f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/source/markdown/options/mount.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Current supported mount TYPEs are **artifact**, **bind**, **devpts**, **glob**,
1111
Options common to all mount types:
1212

1313
- *src*, *source*: mount source spec for **bind**, **glob**, and **volume**.
14-
Mandatory for **artifact**, **bind**, **glob**, **image** and **volume**.
14+
Mandatory for **artifact**, **bind**, **glob**, and **image**.
15+
Optional for **volume**; if omitted, an anonymous volume is created.
1516

1617
- *dst*, *dest*, *destination*, *target*: mount destination spec.
1718

@@ -142,4 +143,6 @@ Examples:
142143

143144
- `type=artifact,src=quay.io/libpod/testartifact:20250206-multi,dst=/data,title=test1`
144145

146+
- `type=volume,destination=/path/in/container`
147+
145148
- `type=volume,src=test_vol,dst=/data,subpath=/code/docs`

0 commit comments

Comments
 (0)