装具したエラー
以下のエラーが出る。
az acr login -n <acrname>
Error saving credentials: error storing credentials - err: exec: "docker-credential-desktop.exe": executable file not found in $PATH, out: ``
Login failed.
解決策
~/.docker/config.json
内にある credsStore
を削除
$ cat ~/.docker/config.json
{
"auths": {
<省略>
},
"credsStore": "desktop.exe" // <= この行を削除
}
参考
https://stackoverflow.com/a/65896682
https://forums.docker.com/t/docker-credential-desktop-exe-executable-file-not-found-in-path-using-wsl2/100225/29