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

Using nsswrapper is not now recommended method. #100

Open
GrahamDumpleton opened this issue Apr 6, 2018 · 1 comment
Open

Using nsswrapper is not now recommended method. #100

GrahamDumpleton opened this issue Apr 6, 2018 · 1 comment

Comments

@GrahamDumpleton
Copy link

Using nsswrapper is no longer the recommended method. The preferred suggestion now is to make /etc/passwd and /etc/group writable and add entries from the ENTRYPOINT script.

See section 'Support Arbitrary User IDs`` in:

For an actual example, which also includes updating /etc/group which sometimes is also necessary but docs don't mention, see:

@tchughesiv
Copy link
Member

Thanks @GrahamDumpleton ... interestingly enough, the Dockerfile example in those official docs is a link back to this same repository:
https://github.com/RHsyseng/container-rhel-examples/blob/master/starter-arbitrary-uid/Dockerfile.centos7

FWIW though, you're right we should probably just remove the nsswrapper example altogether given is doesn't really buy you anything over the supported method. I think I've just been delaying its removal in case someone needed this as a reference for something. Thanks for the input and the /etc/group pointer.

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

No branches or pull requests

2 participants