..
docker-credential-desktop.exe: Invalid argument
While WSL works great most of the time, sometimes things break and life is not as smooth as with a real Linux system. Out of the blue (maybe related to a Docker Desktop update?) I was no longer able to log into a custom docker registry:
$ docker login custom.docker.registry
Username: foo
Password:
docker-credential-desktop.exe: Invalid argument
Turns out that there was an outdated credsStore
entry in ~/.docker/config.json
.
{
"auths": {
"custom.docker.registry": {}
},
"credsStore": "desktop.exe"
}
Deleting the file resolved this issue.