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
docker-credential-pass does not work at all #118
Comments
Weird bug, can you try out #124, and see if that fixes your problem? |
OK here's another essential tip if you find your
... so that |
I'm experiencing same issue, and I have no GPG passphrase set. Wondering if OP found an solution? |
This really worked for me after banging my head to the wall for the whole day. |
Perfect response, thank you for swift reaction ;) |
Same as OP but it a |
Excellent solution! It worked for me too. |
It worked perfectly here
|
@noraj did you ever figure this out? I am seeing the same thing when docker compose goes to pull the images. |
Same issue here. The export GPG_TTY=$(tty) seems to solve the issue by presenting a prompt, but it does not seem like a good solution for me since I want to script the docker pull through ansible. |
Considering there is no way to use docker-credential-pass (and therefore docker) if no X server is available and you do not pass this environment variable, should docker-credential-pass add this variable to the environment when executing |
I've followed the setup instructions for pass from #102
When I use docker login now:
As you can see, first docker-credential-pass is unable to open the password store failing with
gpg: decryption failed: No secret key
, whereaspass show <some-entry>
will prompt for the gpg key passphrase.Even when gpg-agent(?) has cached the private key allowing to access the password store without the passphrase, docker login pre-fills my username, but I still have to enter the registry password.
I've verified my private key is present in GPG and has the same ID as ~/.password-store/.gpg-id
Also, I've verified pass has stored the correct password in
docker-credential-helpers/bXkucHJpdmF0ZS5yZWc6NTA1MAo\=/dransfeld@company.org
and the subfolder is the registry's base64-encoded URI.My
~/.docker/config.json
:docker-credential-pass version: 0.6.0
GPG version: 2.2.4-1ubuntu1.1
pass version: v1.7.1
Docker version: 18.03.1-ce
OS: Ubuntu 18.04 x64 server
Expected behavior
I expected no password prompt and a successful login to my.private.reg:5050 (or just the gpg passphrase prompt from pass) when running
docker login
Observed behavior
No prompt for GPG passphrase, prompt for registry password
What's wrong with my setup?
The text was updated successfully, but these errors were encountered: