Skip to content

[Request]: support running containers --read-only and mounting volumes/bind mounts readonly #990

Activity

  1. added theissue type on Dec 24, 2025
  2. self-assigned this
    on Dec 28, 2025
  3. dcantah commented on Dec 28, 2025

    @dcantah
    Contributor

    This is one piece of the puzzle apple/containerization#461

  4. dcantah commented on Dec 28, 2025

    @dcantah
    Contributor

    @Domini we do support read only for mounts already, it's only the rootfs that has an issue it seems:

    ➜  container git:(ctr-readonly) ✗ ./bin/container run --rm --mount type=bind,source="$(pwd)",target=/app,readonly ubuntu:latest touch app/hi
    Warning! Running debug build. Performance may be degraded.
    touch: cannot touch 'app/hi': Read-only file system
    
    ➜  container git:(ctr-readonly) ✗ ./bin/container run --rm --mount type=bind,source="$(pwd)",target=/app,ro ubuntu:latest touch app/hi
    Warning! Running debug build. Performance may be degraded.
    touch: cannot touch 'app/hi': Read-only file system
    
    ➜  container git:(ctr-readonly) ✗ ./bin/container run --rm --mount type=bind,source="$(pwd)",target=/app ubuntu:latest touch app/hi
    Warning! Running debug build. Performance may be degraded.
    
  5. Domini commented on Dec 29, 2025

    @Domini
    Author

    @dcantah, indeed, sorry about that.

    Read-only volumes (type=volume,source=test,target=/test,readonly) are also supported.

    Only read-only rootfs left.

  6. added a commit that references this issue on Jan 7, 2026
    5d6c750
  7. added a commit that references this issue on Jan 8, 2026
    d8ebee4
  8. added 3 commits that reference this issue on Jan 20, 2026
    1559e6d
    0099292
    94ba456
  9. added a commit that references this issue on Jan 27, 2026
    02de007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions