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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix docker crash when creating namespaces with UID in /etc/subuid and /etc/subgid #39764
Conversation
wondering if we should do all this magic, or just detect numeric IDs and produce an informative error that username should be used 🤔 |
@thaJeztah Not sure if we want to ask user to change |
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.
SGTM
cc @AkihiroSuda
needs a rebase to get the new jenkinsfile to run today's PR checks. triggering of old jenkins job will not work anymore |
… /etc/subgid This fix tries to address the issue raised in 39353 where docker crash when creating namespaces with UID in /etc/subuid and /etc/subgid. The issue was that, mapping to `/etc/sub[u,g]id` in docker does not allow numeric ID. This fix fixes the issue by probing other combinations (uid:groupname, username:gid, uid:gid) when normal username:groupname fails. This fix fixes 39353. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
9969519
to
f09dc2f
Compare
Rebased and all tests passed. Thanks all 🎉 ! |
Thanks! |
This fix tries to address the issue raised in #39353 where docker crash when creating namespaces with UID in /etc/subuid and /etc/subgid.
The issue was that, mapping to
/etc/sub[u,g]id
in docker does not allow numeric ID.This fix fixes the issue by probing other combinations (uid:groupname, username:gid, uid:gid) when normal username:groupname fails.
This fix fixes #39353.
Signed-off-by: Yong Tang yong.tang.github@outlook.com