问题描述
WSL 2 is not installed
Install WSL using this PowerShell script (in an administrative PowerShell) and restart your computer before using Docker Desktop:
Enable-WindowsOptionalFeature -Online -FeatureName $("VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux")

尝试解决方法
-
cmd 中运行 systeminfo 查看是否启用 Hyper-V
-
【控制面板】–【程序】–【启用或关闭 Windows 功能】,勾选添加 Hyper-V 全部选项,确定
继续报错
- WSL 2 installation is incomplete.

解决方法
- 点击弹出窗口提示的地址,下载并安装微软官方提供的 wsl_update_x64.msi
- 重启
参考
- https://docs.microsoft.com/en-us/windows/wsl/install-win10#step-4—download-the-linux-kernel-update-package