Ubuntuを入れたあとにDocker Desktopをインストールした時、dockerコマンドが通らない
症状
Docker Desktop
は正常にインストールされていて、サンプルのcontainerも正常に動いているのに、
Powershell
で
docker
コマンドをうってもnot foundになる
原因
WSL2
と統合していない
解決
https://gyazo.com/17b48aa757992df5d844e1ae4df85edb
Docker Desktopの設定から
Resouces
→
WSL integration
Enable integration with additional distros:
Ubuntu
をONに
設定を保存し、PCの再起動