繼上一篇 Windows 10 Home安裝Hyper-V及Docker 在 Windows 10 Home 成功安裝 Docker Desktop 後
接下來讓 WSL 可以管理本地的 Docker Desktop。也可使用 CMD 來管理就好,但個人比較習慣 WSL
如何安裝 WSL?
先安裝適用於 Linux 的 Windows 子系統

到 Microsoft Store 安裝 Ubuntu (目前版本為 20.04 LTS )

WSL 安裝完成後,接著進行設定 Docker
將 Expose daemon on tcp://localhost:2375 without TLS 開啟

2. 打開 WSL,進行以下步驟
$ sudo apt update
$ sudo apt install docker.io
$ sudo usermod -aG docker $USER
$ export DOCKER_HOST=127.0.0.1:2375
$ echo "export DOCKER_HOST=tcp://0.0.0.0:2375" >> ~/.bashrc
$ source ~/.profile
完成
$ docker version
