docker-credential-desktop.exe not installed or not available in PATH

公開日時
更新日時

WSL2上のUbuntuでdocker-compose upを実行したところ↓のエラーが発生するようになってしまった。

docker.credentials.errors.InitializationError: docker-credential-desktop.exe not installed or not available in PATH

PATHを確認してみるとDockerDesktopのPATH自体は設定されていそう。

echo $PATH

/mnt/c/Program\ Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin

↓のissueにconfig.jsonを消すと直るとあったので試してみたところdocker-compose upできるようになった。

rm ~/.docker/config.json

参考


Related #docker

WSL2でCannot connect to the Docker daemonエラーが発生

Stable版をダウンロードしてきて再インストールしたら直った

mysqld: [Warning] World-writable config file '/etc/mysql/conf.d/my.cnf' is ignored.

windowsだとvolume mountすると777になるのでDockerfileを作ってcopyするようにした

Dockerで日本語対応のPuppeteerを動かす

日本語フォントを入れて文字化けしないようにした

docker-composeでElasticsearchの検証環境を作る

手軽に全文検索エンジンの検証環境ができた

dockerがno space left on deviceになって立ち上がらなくなった

削除条件に使えるfilterオプションの存在を知った