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

Solution 1:

This discussion solved my error:
https://forums.docker.com/t/docker-credential-desktop-exe-executable-file-not-found-in-path-using-wsl2/100225

I just renamed credsStore to credStore in ~/.docker/config.json.