dockerdocker-desktop

exec: "docker-credential-desktop.exe": executable file not found in $PATH


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

Solution

  • This discussion solved my error.

    You should delete the line with credsStore from ~/.docker/config.json or rename credsStore to credStore.