question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error saving credentials: error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

See original GitHub issue

Rancher Desktop Version

0.7.0

Rancher Desktop K8s Version

1.21.6

What operating system are you using?

macOS

Operating System / Build Version

11.6.1

What CPU architecture are you using?

x64

Windows User Only

No response

Actual Behavior

> docker login registry.local
Username: user
Password: 
Error saving credentials: error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

Steps to Reproduce

Delete any other Docker installs, install RD with DockerD option, activate /usr/local/bin/docker symlink option. Try docker login.

Result

Not able to login.

Expected Behavior

Should be able to use private registries.

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
janduboiscommented, Jan 25, 2022

docker-credential-desktop is part of Docker Desktop and obviously no longer available when you uninstall it.

It is configured in ~/.docker/config.json:

{
    "auths": {
		"ghcr.io": {},
    },
    "credsStore": "desktop"
}

When you delete the credsStore entry, the credentials will be stored directly inside this config file.

Or you could install the docker credential helper with e.g. brew:

$ brew install docker-credential-helper

and then change desktop to osxkeychain (the desktop helper is not available outside Docker Desktop).

Note that this is purely about encrypting credentials at rest (when you are not already logged into the system). If you already use drive encryption, it doesn’t really make much difference.

1reaction
evertonlperescommented, Jan 25, 2022

Adding a bit more info in this thread:

On macOS, after uninstalling Docker Desktop and removing the folder ~/Library/Application\ Support/Docker\ Desktop/, I can also replicate the same issue (using docker-compose):

❯ docker-compose build && docker-compose up
2 errors occurred:
	* error listing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
	* error listing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

A workaround that actually works for me, removing credsStore entry from config.json:

{
  "auths" : {
    "https://index.docker.io/v1/" : {

    }
  }
}

Ref project: https://github.com/evertonlperes/sample-test-app Rancher Desktop 1.0.0-beta1 macOS Monterey 12.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

docs source about docker-credential-desktop #149 - GitHub
Error saving credentials : error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out:.
Read more >
"docker-credential-desktop.exe": executable file not found in ...
I got this error during docker build ...
Read more >
Docker-credential-desktop.exe executable file not found in ...
The problem does not occur at all if I use Powershell. The exe is definitely in my PATH, and I can invoke it...
Read more >
How to solve Docker 'docker-credential-desktop not installed ...
If you're getting the following error, I found the solution for it: dockerpycreds.errors.InitializationError: docker-credential-desktop not ...
Read more >
More fun with Docker and Homebrew - authentication this time
Error saving credentials : error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found