Skip to content

recursive read-only (RRO) mount: support the Docker v25 form #2651

Open
@AkihiroSuda

Description

@AkihiroSuda

nerdctl/README.md

Lines 211 to 215 in 4299deb

## 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).

See:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions