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
ldap user as docker username #7057
Comments
If you are running docker in the
Note that inside the container, you will not see the name but the actual UID and GID. |
@Bhuvaneswaran You need to set this up within your container. Integrating with ldap now isn't possible. Ldap integration for Docker might become possible in the future, but it's not supported for now. This should become possible once plugins are supported. |
@louden I've run into this same issue years later, and if I try to pass in the user and they are only stored in LDAP and not /etc/passwd I'm unable to use them inside the container even with your code snippet. Sadly I highly doubt our network admins would appreciate me creating a local user (if I have the permissions) and running docker with that user just to work around the fact that it can't query the network authentication for the user that doesn't "exist" on the system according to /etc/passwd. |
The
-u/--user
option fordocker run
is useful only for local accounts listed in/etc/passwd
. If host system is integrated with ldap, the users won't have an entry in this file. Docker run fail, as it's unable to find those users.In the below example, user
bhuvan
is in ldap, but docker run don't allow to use this account. Docker should have an ability to use host system auth mechanism.The text was updated successfully, but these errors were encountered: