From 26ad103469cd331677d7e3910ef084c8e07a751a Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 26 Mar 2025 10:03:43 -0400 Subject: [PATCH] Document rw and src options for --mount flag in buildah-run(1) Per discussion item 6084. Signed-off-by: Nalin Dahyabhai --- docs/buildah-run.1.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/buildah-run.1.md b/docs/buildah-run.1.md index f4f189004..078bb0f2b 100644 --- a/docs/buildah-run.1.md +++ b/docs/buildah-run.1.md @@ -136,6 +136,8 @@ Current supported mount TYPES are bind, cache, secret and tmpfs. Writes to `bind · ro, read-only: (default true for `type=bind`, false for `type=tmpfs`, `type=cache`). + · rw, read-write: (default false for `type=bind`, true for `type=tmpfs`, `type=cache`). + Options specific to bind: · bind-propagation: shared, slave, private, rshared, rslave, or rprivate(default). See also mount(2). [[1]](#Footnote1) @@ -144,6 +146,8 @@ Current supported mount TYPES are bind, cache, secret and tmpfs. Writes to `bind · from: image name for the root of the source. Defaults to **--contextdir**, mandatory if **--contextdir** was not specified. + · src: location in the context directory (or image, if the **from** option is used) to mount instead of its top-level directory. + · z: Set shared SELinux label on mounted destination. Use if SELinux is enabled on host machine. · Z: Set private SELinux label on mounted destination. Use if SELinux is enabled on host machine. @@ -166,7 +170,7 @@ Current supported mount TYPES are bind, cache, secret and tmpfs. Writes to `bind · mode: File mode for new cache directory in octal. Default 0755. - · ro, readonly: read only cache if set. + · src: location in the cache (or image, if the **from** option is used) to mount instead of its top-level directory. · uid: uid for cache directory.