安装步骤
1.启动Hyper-V
2.安装Docker
3.更新WSL
4.安装ubuntu
5.使用ubuntu
出现The command ‘docker’ could not be found in this WSL 2 distro. We recommend to activate the WSL integration in Docker Desktop settings.
For details about using Docker Desktop with WSL 2, visit:
https://docs.docker.com/go/wsl2/
错误
解决方法:打开Docker Desktop,点击上方设置,点击左侧Resource,下面出现WSL integration,点击WSL integration,开启Ubuntu即可