exec: "docker-credential-desktop.exe": executable file not found in $PATH
Jan 26
I got this error during docker build:
=> ERROR [internal] load metadata for docker.io/library/ubuntu:18.04 2.1s
------
> [internal] load metadata for docker.io/library/ubuntu:18.04:
------
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.exe": executable file not found in $PATH, out: ``
Makefile:26: recipe for target 'build-local' failed
make: *** [build-local] Error 1
1 answer
Accepted answer · original discussion
Jan 26
I found a docker forum discussion that solved my error.
Edit ~/.docker/config.json and either delete or rename the credsStore entry:
Broken:
"credsStore": ...
Works:
"credStore": ...
Explanation:
The property credsStore specifies an external binary to serve as the default credential store. When this property is set, docker login will attempt to store credentials in the binary specified by docker-credential-<value> which is visible on $PATH. If this property is not set, credentials will be stored in the auths property of the config.
More information on credStore can be found in the Docker reference.
Thanks goes to @Javier Buzzi and @valk for the explanation.
0 question comments
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.