moby/plugin/v2
Akihiro Suda 762ec4b60c
plugin: fix mounting /etc/hosts when running in UserNS
Fix `error mounting "/etc/hosts" to rootfs at "/etc/hosts": mount
/etc/hosts:/etc/hosts (via /proc/self/fd/6), flags: 0x5021: operation
not permitted`.

This error was introduced in 7d08d84b03
(`dockerd-rootless.sh: set rootlesskit --state-dir=DIR`) that changed
the filesystem of the state dir from /tmp to /run (in a typical setup).

Fix issue 47248

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-03-15 22:16:34 +09:00
..
plugin.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
plugin_linux.go plugin: fix mounting /etc/hosts when running in UserNS 2024-03-15 22:16:34 +09:00
plugin_unsupported.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
settable.go plugin: use strings.Cut() 2022-12-21 11:09:02 +01:00
settable_test.go plugin: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00