You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation does not discuss the use of docker-credential-helpers with Docker desktop.
If you follow the instruction from the README file you will only be able to configure credentials for the docker in the CLI which will not be picked up by Docker Desktop.
It turns out that Docker Desktop has its own set of configurations in ~/.docker/desktop/settings.json. Make sure to change the following entry in this file so Docker Desktop picks the right credential method.
I faced the same issue as #182 (docker-credential-pass not found) after installing Docker Desktop on Ubuntu 22.04, when attempting docker login $PRIVATE_REGISTRY.
Things I noticed:
docker-credential-pass is only installed to /opt/docker-desktop/bin/, so not in the (default) $PATH.
BUT docker-credential-desktopis installed correctly to various standard $PATH locations, like /usr/bin/ for example.
~/.docker/desktop/settings.json has a entry with "credentialHelper": "docker-credential-pass". That's probably a reference to the binary installed to /opt/docker-desktop/bin/, so better not mess with that..
The documentation does not discuss the use of
docker-credential-helpers
with Docker desktop.If you follow the instruction from the README file you will only be able to configure credentials for the docker in the CLI which will not be picked up by Docker Desktop.
It turns out that Docker Desktop has its own set of configurations in
~/.docker/desktop/settings.json
. Make sure to change the following entry in this file so Docker Desktop picks the right credential method.In my case, I finally got rid of the annoying PGP dialogues in Ubuntu by switching to the OS keyring.
It would be a great idea to have this instructions documented in the README file. It took me a while to find this workaround.
Also, is this the recommended approach to integrate the credential helpers with Docker Desktop?
The text was updated successfully, but these errors were encountered: