我尝试使用 WSL2 选项在 Windows 10 上安装 Docker Desktop,但遇到了很多问题。
我按照 Microsoft WSL 指南,启用了适用于 Linux 的 Windows 子系统,打开了 Windows Hypervisor,并使用特定命令启用了 Hyper-V。
https://learn.microsoft.com/en-us/windows/wsl/install
点击上述链接后,我执行了这两个命令:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
运行这两个命令后,我尝试运行来检查 wsl 是否安装:
wsl -l -v
但是出现以下错误:
'wsl' is not recognized as an internal or external command, operable program or batch file.
我检查了以下路径,但没有 wsl.exe 文件存在:
C:\Windows\System32
但运气不佳。
还使用以下方式安装了内核版本:
WSL2 Linux kernel update package for x64 machines
我的机器是ARM64。