文章目录
在Windows上安装Docker的详细步骤如下:
1. 检查系统要求
确保您的Windows系统满足以下要求:
- Windows 10 64-bit: Pro, Enterprise, or Education (build 16299 or later)。
- Windows 11 64-bit。
- Windows Server 2016 或更高版本。
2. 启用硬件虚拟化
Docker for Windows依赖于Hyper-V和虚拟化功能。确保在BIOS/UEFI中启用了虚拟化技术(Intel VT-x或AMD-V)。
3. 启用Hyper-V和容器功能
- 通过PowerShell启用:
Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V-All"