更新Docker安装、镜像、Dockerfile和Compose等文档内容

This commit is contained in:
yeasy
2026-03-29 11:40:34 -07:00
parent 59bfe9cff6
commit 3bad07c41a
21 changed files with 265 additions and 8 deletions
+17
View File
@@ -2,6 +2,23 @@
Windows 平台上Docker Desktop 提供了完整的 Docker 开发环境本节介绍在 Windows 10/11 上的安装和配置
### Windows 上的 Docker运行原理理解
macOS 类似Windows 也没有原生 Linux 容器支持Docker Desktop for Windows 有两种运行后端可选
**WSL 2Windows Subsystem for Linux 2** - 推荐
- 利用 Hyper-V 虚拟化运行真正的 Linux 内核
- 性能更好文件系统集成更深
- 现代 Windows 10/11 的标准选择
- 支持在 Linux Windows 之间的无缝文件访问
**Hyper-V** - 传统方案
- 纯虚拟化方式
- 性能略低于 WSL 2
- 在某些企业网络环境下仍被使用
**实践建议**如果你的系统支持 WSL 2强烈推荐使用 WSL 2在安装 Docker Desktop 如果 WSL 2 环境检测无问题安装程序会自动使用 WSL 2
### 3.8.1 系统要求
[Docker Desktop for Windows](https://docs.docker.com/desktop/setup/install/windows-install/) 支持 Docker 官方文档列出的受支持 Windows 10/11 64 位版本。若使用 WSL 2 后端,需要启用 WSL 2,并满足官方要求的 `WSL 2.1.5` 或更高版本;若使用 Hyper-V 后端,则需要启用 Hyper-V 和 Containers 功能。Windows 10 64 位支持 Enterprise、Pro 和 Education 22H2 (build 19045)Windows 11 64 位支持 Enterprise、Pro 和 Education 23H2 (build 22631) 或更高版本。