Open gzagatti opened 11 months ago
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
.docker-credential-desktop
is 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..What resolved my issue:
~/.docker/config.json
to
{
"credsStore": "desktop"
}
gpg
key and initialize pass
. docker login $PRIVATE_REGISTRY
worked like a charm.
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?