Windows安装Docker Win11 开启 Hyperv 步骤 1 windows11 上安装 HyperV 创建hyper-v.txt文件,然后重命名为hyper-v.bat文件,再以管理员的方式运行。 pushd "%~dp0"dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txtfor /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"del hv.txtDism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALLpause 控制面板 ==> 程序 ==> 启用或关闭Windows功能 ==> 开启Hyper-V 安装WSL 步骤 2 启用适用于 Linux 的 Windows 子系统 以管理员身份打开 PowerShell,然后输入以下命令: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 步骤 3 启用虚拟机功能 安装 WSL 2 之前,必须启用“虚拟机平台”可选功能。 计算机需要虚拟化功能才能使用此功能。 以管理员身份打开 PowerShell 并运行: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 步骤 4 下载 Linux 内核更新包 Li...