You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support recursive read-only (RRO) mounts: nerdctl run -v /foo:/bar:rro,rprivate
`nerdctl run -v /foo:/bar:rro,rprivate` appends "rro" (in addition to "ro") to the OCI mount option string slice.
Requires crun >= 1.4 or runc >= 1.1 (opencontainers/runc PR 3272).
Older version of runc just ignores "rro" option.
The "rro" option string conforms to the proposal in util-linux/util-linux Issue 1501.
Signed-off-by: Akihiro Suda <[email protected]>
-:whale::blue_square:`-v, --volume`: Bind mount a volume
344
+
-:whale::blue_square:`-v, --volume <SRC>:<DST>[:<OPT>]`: Bind mount a volume, e.g., `-v /mnt:/mnt:rro,rprivate`
345
+
-:whale: option `rw` : Read/Write (when writable)
346
+
-:whale: option `ro` : Non-recursive read-only
347
+
-:nerd_face: option `rro`: Recursive read-only. Should be used in conjunction with `rprivate`. e.g., `-v /mnt:/mnt:rro,rprivate` makes children such as `/mnt/usb` to be read-only, too.
348
+
Requires kernel >= 5.12, and crun >= 1.4 or runc >= 1.1 (PR [#3272](https://github.com/opencontainers/runc/pull/3272)). With older runc, `rro` just works as `ro`.
0 commit comments