Using the latest build of Windows 10 and Docker for Windows 19.03.13, I cannot specify image versions in my images using WSL2 and Ubuntu 18.
If I have the line
in my Dockerfile, I get and error message saying
failed to solve with frontend dockerfile.v0: failed to build LLB: failed to load cache key: rpc error: code = Unknown desc = error getting credentials - err: exec: “docker-credential-desktop.exe”: executable file not found in $PATH, out: ``
The problem seems to go away if I replace the 7 tag with “latest”. The problem does not occur at all if I use Powershell.
The exe is definitely in my PATH, and I can invoke it using
I found some discussion on the GitHub Docker for Windows page, but none of the suggestions (e.g. creating a symlink to the exe) work. People on other pages also suggested deleting the config.json file or renaming the credStore property to _credStore. These didn’t work because either the file gets recreated or the property gets changed back.
I get the same problem if I try to log into the Docker repository.
I’d be grateful for any help.