Skip to content
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

use docker idtools for subid lookups #53

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

jaredbancroft
Copy link
Contributor

@jaredbancroft jaredbancroft commented Mar 23, 2019

runc/libcontainer/user lookups depend on users being local to the system and appearing in /etc/passwd and /etc/group. docker idtools fall back to using getent if local users aren't present which allows external lookups to work (systems using ldap with sssd). idtools looks up both subuid and subgid in a single map command which fails if a users primary group does not have the same name as their username, so username is passed as both arguments to idtools.NewIdentityMapping. os/user is used to determine uid and primary gid.

@AkihiroSuda
Copy link
Member

Thanks, could you sign your commit with your real name (git commit -a -s --amend) and also run dep ensure?

…lookups

Signed-off-by: Jared Bancroft <jaredb@broadinstitute.org>
@jaredbancroft
Copy link
Contributor Author

All set

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@AkihiroSuda AkihiroSuda merged commit 3dd3e52 into rootless-containers:master Mar 25, 2019
@AkihiroSuda AkihiroSuda mentioned this pull request Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants