Windows安装Docker
开启环境支持
# 启用Hyper-V(执行后需重启)
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
# 启用适用于Linux的Windows子系统(WSL)
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
# 启用虚拟机平台(用于WSL 2)
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
下载
在命令行运行
docker --version
输出版本号为安装运行成功。

浙公网安备 33010602011771号