mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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 in7d08d84b03(`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> (cherry picked from commit762ec4b60c) Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>