Unable to authenticate with container registry using pass
Apologies if I have made a basic mistake, but I cannot get the pass credential helper to work on a very basic level. I have installed and initialized pass v1.7.4 and docker-credential-pass 0.6.4 and initialized the former.
I have then logged into a GitHub container registry via:
echo $GH_TOKEN | docker login ghcr.io -u $MY_USERNAME --password-stdin
And tried to pull or push images but this always fails with "unauthorized" but the GitHub token has the correct rights and more importantly this works when not using the pass credential helper. Should this not at least prompt for the password of my GPG key???
Am I missing a step?
Same happens to me. I have to manually run pass show something first in order to unlock pass, and then it works for some time after.
Same happens to me. I have to manually run
pass show somethingfirst in order to unlockpass, and then it works for some time after.
I had the exact same issue! Showing the password prompted for the gpg password and after that I could pull private images.
I believe this is a duplicate of #327