Solvedddev In WSL2 ddev start fails at docker-credential-desktop.exe, "error listing credentials"
✔️Accepted Answer
I had to set "credsStore": ""
in my ~/.docker/config.json ... it was previously set to credentials.exe
Other Answers:
Oh, you might try just docker logout
as well. Some versions of docker have had the most annoying habit of not being able to pull images while logged into hub.docker.com, and logging out solves it.
Hi @karikaariainen - There was a version of Docker Desktop that created a bogus .docker/config.json, see docker/for-mac#3785 (comment)
I think you might have that. I imagine a docker reset to factory defaults would fix this, also perhaps editing your (host-side) ~/.docker/config.json.
For @BennyAlex and anyone else who is still having this issue
This error is due to a questionable Docker update for Windows (not specific to ddev), the Docker instance in yout WSL uses the Windows credentials manager and stores your credentials in ~/.docker/config.json
.
Try the follwing command from inside WSL:
docker logout
If that does not work try it again as sudo (not ideal).
As a last resort you can reset Docker to factory defaults from Docker Desktop (from Windows) and everything should work fine.
On a Finnish Windows 10 Pro, I went through the tutorial https://www.ddev.com/ddev-local/ddev-wsl2-getting-started/ and everything works, except when I run ddev start, I get:
docker.credentials.errors.StoreError: Credentials store docker-credential-desktop.exe exited with "error listing credentials - err: exit status 1, out: 'Elementtiä ei löydy.'".
Failed to start firsttest: failed to start ddev-ssh-agent: Failed to run docker-compose [-f /home/kari/.ddev/ssh-auth-compose.yaml -p ddev-ssh-agent up --build --force-recreate -d], err='exit status 255', stdout='', stderr='Creating volume "ddev-ssh-agent_dot_ssh" with default driver
Creating volume "ddev-ssh-agent_socket_dir" with default driver
Building ddev-ssh-agent
[13734] Failed to execute script docker-compose
Traceback (most recent call last):
File "site-packages/docker/credentials/store.py", line 80, in _execute
File "subprocess.py", line 411, in check_output
File "subprocess.py", line 512, in run
subprocess.CalledProcessError: Command '['/mnt/c/Program Files/Docker/Docker/resources/bin/docker-credential-desktop.exe', 'list']' returned non-zero exit status 1.
etc.
"Elementtiä ei löydy." is Finnish for "The element can't be found".
The distro is Ubuntu 20.04 LTS, Docker Desktop is 2.3.0.3.