New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin: fix mounting /etc/hosts when running in UserNS #47558
Conversation
Curious; what's different about the new location that's used; is it a permissions issue, and in that case, should we just fail to start, asking the user to fix the permissions for the |
No, this is not a permission issue Lines 448 to 499 in ff05850
|
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 7d08d84 (`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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@neersighted PTAL
- What I did
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 7d08d84 (
dockerd-rootless.sh: set rootlesskit --state-dir=DIR
) that changed the filesystem of the state dir from /tmp to /run (in a typical setup).Fixes #47248
- How I did it
Applied
mountsopts.FixUpOCI
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
馃惂