I am using WSL2 on Windows 11 and have encountered the following error when running make docker.push
following the instructions to set up an Istio dev environment:
ERROR: error getting credentials - err: exec: "docker-credential-desktop.exe": executable file not found in $PATH, out: ``
docker-credential-desktop
is on my path at usr/bin
. I found recommendations to remove or rename credsStore
in ~/.docker/config.json
. When I remove or rename credsStore
I get the following error:
ERROR: denied: requested access to the resource is denied
Could the process for developing with WSL be added to the guides? Has anyone else encountered this issue?
I was able to get make docker.push
to succeed by removing the credsStore
field from the docker config and then performing a docker logout
and docker login
.
Although this allows me to push the Istio images to my docker hub, I believe my credentials are stored directly in the docker config which is not ideal.
Are there any alternative solutions you would suggest? I tried using the linux credential store, but also ran into an error. I followed the instructions outlined in this post. When performing docker logout
I got the following error:
Removing login credentials for https://index.docker.io/v1/
WARNING: could not erase credentials:
https://index.docker.io/v1/: error erasing credentials - err: exit status 1, out: `exit status 1: Error: docker-credential-helpers/<cred> is not in the password store.`