Merge pull request #28506 from Honny1/fix-mount-docs-anonymous-volume

Fix docs --mount source not mandatory for type=volume
This commit is contained in:
Ashley Cui 2026-04-15 10:01:46 -04:00 committed by GitHub
commit c3d7c2fca7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`