Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hirobert/084300222a68c9db7b4f214d97c3d000 to your computer and use it in GitHub Desktop.
Save hirobert/084300222a68c9db7b4f214d97c3d000 to your computer and use it in GitHub Desktop.
How to fix Ubuntu docker-credential-desktop error

How to fix Ubuntu docker-credential-desktop error

Errors:

failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
Error saving credentials: error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

Solution:

mv  ~/.docker/config.json ~/.docker/config.json.bk

sudo apt install gnupg2 pass gpg

docker login

Login Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment