-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error saving credentials: error storing credentials - err: exit status 1, out: pass store is uninitialized
#140
Comments
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
|
Same here, followed all the steps but still: λ pass show docker-credential-helpers/docker-pass-initialized-check
pass is initialized
λ docker-credential-pass list
pass store is uninitialized
λ jq '.credsStore' < ~/.docker/config.json
"pass" Some more information: checked commits, and commit d6c1f13 changed initialization checking logic in such a way that adding that |
I was having the same issue. I tried the lastest version v0.6.3 and that worked. |
upgrade to v0.6.3 works for me too |
I fixed it with the following commands:
|
I had non-empty config.json. The error is counter-intuitive. $ echo $CR_PAT | docker login ghcr.io -u Ap3lsin4k --password-stdin
Error saving credentials: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `pass not initialized: exit status 1: Error: password store is empty. Try "pass init".``
$ echo $CR_PAT | wc --chars
41 Answer from @ha2la works for me: $ service docker stop
$ rm ~/.docker/config.json
$ echo $CR_PAT | docker login ghcr.io -u Ap3lsin4k --password-stdin
Login Succeeded |
I try use answer @ha2la |
@ha2la Works fine after stopping and starting docker services and removing json file |
@ha2la its working thanks |
It worked, thank you |
This worked! |
This definitely works, but it's just reverting to storing your password in plain text as the warning message notes:
|
Follow the doc, please. Link: https://docs.docker.com/desktop/get-started/#credentials-management-for-linux-users |
if you want a GPG key without a password, run |
Run this command : |
@Cupcc, be aware that |
For me all the instructions did not work, until I added a trailing slash to the registry url (GitLab CI docker registry, if it matters). |
Problem still there an none of the solution online worked ... 😞 |
this sequence worked for me: thank you! |
I've successfully got it to install and work but the issue is it's not consistent.
Error:
pass store is uninitialized
Expectation:
using
Troubleshooting:
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?
The text was updated successfully, but these errors were encountered: