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
{{ message }}
Repository navigation
recursive read-only (RRO) mount: support the Docker v25 form #2651
## Features implemented in `nerdctl` ahead of Docker
- Recursive read-only (RRO) bind-mount: `nerdctl run -v /mnt:/mnt:rro` (make children such as `/mnt/usb` to be read-only, too).
Requires kernel >= 5.12.
The same feature was later introduced in Docker v25 with a different syntax. nerdctl will support Docker v25 syntax too in the future.
Docker v25 attempts to apply RRO by default for read-only mounts with runc >= v1.1, kernel >= v5.12.
The behavior is customizable with bind-recursive option for --mount (not for -v).
Hope I didn't make life hard on you, removing the boolean format ❤️ (I was looking at it again, and thought "now" is the moment to still change it; and it's easier to add back later, than to ship it and remove later).
Activity
AkihiroSuda commentedon Nov 21, 2023
May depend on:
ParseFlagMountshould not depend onParseFlagV(butParseFlagVmay depend onParseFlagMount) #1390thaJeztah commentedon Nov 22, 2023
Hope I didn't make life hard on you, removing the boolean format ❤️ (I was looking at it again, and thought "now" is the moment to still change it; and it's easier to add back later, than to ship it and remove later).
AkihiroSuda commentedon Jul 1, 2026
nerdctl/pkg/mountutil/mountutil_linux.go
Lines 383 to 402 in 4608753
It also has to support
bind-recursive=(readonly|writeonly)