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
This discussion solved my error.
You should delete the line with credsStore
from ~/.docker/config.json
or rename credsStore
to 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.
Read more about it https://docs.docker.com/engine/reference/commandline/cli/#credential-store-options
.
Explanation credits to @Javier Buzzi and @valk, vote up their comments/answers as well.