desktop-linux icon indicating copy to clipboard operation
desktop-linux copied to clipboard

docker desktop keep asking for the passphrase

Open amrsa1 opened this issue 2 years ago • 18 comments

  • [x] I have tried with the latest version of Docker Desktop
  • [x] I have tried disabling enabled experimental features
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

docker is running normally without asking for passphrase

Screenshot from 2023-01-22 22-34-28

Actual behavior

docker keep asking for phassphrase

if used the docker cli im getting this

failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: error getting credentials - err: exit status 1, out: exit status 2: gpg: decryption failed: No secret key

Information

  • Linux distro: ubuntu
  • Distro version: 22.04.1 LTS
  • Docker Desktop Version: 1.16.2

Steps to reproduce the behavior

  • downloaded deb for linux
  • install the app
  • open the app

amrsa1 avatar Jan 29 '23 14:01 amrsa1

+1

chenstanilovsky avatar Jan 30 '23 20:01 chenstanilovsky

This is so annoying and unnecessary. I'm not even using GPG for anything in Docker Desktop. If I don't provide it, then pulling and some other stuff breaks nonsensically.

cardonator avatar Feb 22 '23 23:02 cardonator

+1. Annoying to say the least

wyattbiker avatar Mar 10 '23 16:03 wyattbiker

This is so annoying and needs a solution.
Is it docker desktop logging into docker-hub? Is the fix in docker hub or in docker desktop?

MRIservice avatar Mar 28 '23 00:03 MRIservice

I second that. It's really annoying. I'm only using open pgp for docker desktop on Arch and it pops up randomly. It's not even whilst I am developing anything. Watching a movie in bed at night and I get pop ups asking for my open pgp password. Absolutely ridiculous. I've used pgp keys with Github before and it's never done anything like it's doing with docker desktop.

speightashley avatar Jul 28 '23 15:07 speightashley

@speightashley I had the same problem. Since my Docker Desktop usage is quite basic - view logs, start/destroy containers and volumes, I can do all of that from my IDE (GoLand), so I ended up with just using plain Docker Engine, not Docker Desktop.

varfrog avatar Jul 28 '23 18:07 varfrog

I'm having this issue too and it's very annoying. I'm considering uninstalling docker desktop for Linux. Is there a solution or workaround?

leodip avatar Nov 20 '23 15:11 leodip

+1

zzap avatar Dec 13 '23 18:12 zzap

one year later, what's up?

As a solution, perhaps one could just save the pass to seahorse "save in password manager"?

This will store the passphrase to the pgp key in pass/seahorse by reference to the keygrip that can be easily retrieved $ gpg --list-secret-keys --with-keygrip

joh4nd avatar Jan 10 '24 13:01 joh4nd

still a problem to this day

0xAv1dd avatar Apr 12 '24 02:04 0xAv1dd

Still a problem on latest. This is ridiculously annoying, I get pop-ups roughly every 40 minutes or so. I avoid signing in to docker desktop where possible because of this mess.

Maddog0057 avatar Apr 25 '24 16:04 Maddog0057

Add it to your keyring (should be a box to tick next time it comes up) haven't had it pop up since

0xAv1dd avatar Apr 26 '24 01:04 0xAv1dd

Add it to your keyring (should be a box to tick next time it comes up) haven't had it pop up since

Is this popup part of the docker desktop app? If so, is it a new feature that's been added?

Edit: oh, in the issue description the screenshot does have a checkbox, but it does not work. Maybe it's been fixed (?)

varfrog avatar Apr 26 '24 11:04 varfrog

Still not fixed, annoying issue

XCroatoanX avatar May 08 '24 15:05 XCroatoanX

This is probably not a fix as it consists in removing a security challenge and that's never the right solution, but you can remove the passphrase for the pgp key.

Simply execute gpg2 --change-passphrase <key-id>, enter the current passphrase and when prompted to enter a new one, just hit OK (or press Enter). You might get a warning saying this is not a good idea: take a deep breath and confirm.

If you used this PGP key for something else, I'd strongly advise against doing this. Otherwise, if the key was created solely for the purpose of entering a passphrase every 40 minutes, I'd consider taking the risk and offering yourself some peace.

simtrami avatar May 26 '24 12:05 simtrami

I removed the secret-key at the end. $ gpg --list-secret-keys /home/user/.gnupg/pubring.kbx

sec rsa3072 DATE [SC] [expires: DATE] XYZ uid [ultimate] User [email protected] ssb rsa3072 DATE [E] [expires: DATE]

$ gpg --delete-secret-keys XYZ

and there is no longer prompt anymore. It may not be the ideal choice however it was too annoying.

Karimai avatar Jun 07 '24 09:06 Karimai