moby/volume
Akihiro Suda 5045a2de24
Support recursively read-only (RRO) mounts
`docker run -v /foo:/foo:ro` is now recursively read-only on kernel >= 5.12.

Automatically falls back to the legacy non-recursively read-only mount mode on kernel < 5.12.

Use `ro-non-recursive` to disable RRO.
Use `ro-force-recursive` or `rro` to explicitly enable RRO. (Fails on kernel < 5.12)

Fix issue 44978
Fix docker/for-linux issue 788

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-05-26 01:58:24 +09:00
..
drivers golangci-lint: update to v1.49.0 2022-09-23 23:31:27 +02:00
local remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
mounts Support recursively read-only (RRO) mounts 2023-05-26 01:58:24 +09:00
service remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
testutils linting: gosec: fix or suppress G112, G114 in test code 2022-09-04 15:36:51 +02:00
volume.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00