docker-credential-helpers: Error saving credentials: error storing credentials - err: exit status 1, out: `pass store is uninitialized`
I’ve successfully got it to install and work but the issue is it’s not consistent.
Error:
- Error saving credentials: error storing credentials - err: exit status 1, out:
pass store is uninitialized
Expectation:
- Use the existing credentials
using
- https://github.com/docker/docker-credential-helpers/issues/102#issuecomment-388634452
- https://github.com/docker/docker-credential-helpers/issues/102#issuecomment-388974092
Troubleshooting:
gpg --list-keys /root/.gnupg/pubring.gpg ‘------------------------’ pub 2048R/12312312 2019-03-23 uid Name email@email.com sub 2048R/23423423 2019-03-23
pass init 12312312 Password store initialized for 12312312
docker login username:
It shouldn’t request the username and password it should just use the existing credentials. Why isn’t it loading the key for 12312312
what’s the fix?
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 16
I fixed it with the following commands:
Same here. Struggling with incomplete documentation.
The pass + GPG setup works fine.
Init the pass
One can insert a password fine (this is a MANUAL confirmation of the init check, later I confirm that it is automatically created)
Docker is configured to use pass:
as per https://docs.docker.com/engine/reference/commandline/login/#login-to-a-self-hosted-registry
Docker login succeeds, though fails to store the password:
I wish it would tell us WHICH PASS STORE is unit’d!?
But if we try to run it manually it hangs for a LONG TIME
that was really slow to tell me … how slow?
Here’s finally a reproduction of the error
Lies!
Version is latest
I had non-empty config.json. The error is counter-intuitive.
Answer from @ha2la works for me:
Follow the doc, please.
Link: https://docs.docker.com/desktop/get-started/#credentials-management-for-linux-users
I was having the same issue. I tried the lastest version v0.6.3 and that worked.
@ha2la its working thanks service docker stop rm ~/.docker/config.json service docker start
@ha2la Works fine after stopping and starting docker services and removing json file
Run this command :
sudo docker login. And then input your token. It worked for me.I try use answer @ha2la And before many of this tred But then i enter
docker login -u ...and password Terminal show meError saving credentials: error storing credentials - err: exit status 1, out:pass store is uninitialized`upgrade to v0.6.3 works for me too