docker-credential-helpers icon indicating copy to clipboard operation
docker-credential-helpers copied to clipboard

How do I pass docker credentials in to a container?

Open llamahunter opened this issue 6 years ago • 1 comments

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.

llamahunter avatar Jun 11 '20 19:06 llamahunter

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

Codym48 avatar Mar 13 '23 20:03 Codym48