docker-credential-helpers
docker-credential-helpers copied to clipboard
How do I pass docker credentials in to a container?
Previously, when using docker within docker, I only needed to mount the docker socket and the ~/.docker directory into the appropriate places in the container. Now, however, the credentials are stored "elsewhere" and not in ~/.docker/config.json.
How do I run a docker container that can use docker to talk to authenticated registries? Note that my host system may be osx OR linux, so DBUS socket mounting solutions need not apply.
Bump! It seems providing some documentation or guidance about how to do this would solve a huge number of issues raised elsewhere:
- https://github.com/docker/docker-credential-helpers/issues/95#issuecomment-641478349
- https://github.com/search?q=org%3Adocker+%22error+getting+credentials%22&type=issues