docs(content): add Mac alternatives, K8s transition guide, CI/CD registry push example

- Add OrbStack/Colima comparison table to Mac install chapter (3.7.4)
- Add Docker→K8s concept mapping paragraph to Ch13 intro
- Add KubeKey/RKE2 deployment tool notes to Ch14
- Add production image checklist to Dockerfile chapter summary
- Add build-and-push-to-registry workflow example to GitHub Actions section
- Expand Ch18 security summary with dimension table
This commit is contained in:
yeasy
2026-05-21 21:33:58 -07:00
parent dae0af9ae7
commit 8b9e4518c8
6 changed files with 100 additions and 3 deletions
+20 -1
View File
@@ -72,6 +72,25 @@ $ docker stop webserver
$ docker rm webserver
```
### 3.7.4 镜像加速
### 3.7.4 替代容器运行时
Docker Desktop 并非 macOS 上运行容器的唯一选择以下两个工具也广泛使用各有侧重
| 特性 | Docker Desktop | OrbStack | Colima |
|------|---------------|-----------|--------|
| 启动速度 | 较慢 1030 | 极快 2 | 中等 510 |
| 空闲内存占用 | 46 GB | 200300 MB | 400 MB |
| 图形界面 | 完整 GUI | 轻量 GUI | 仅命令行 |
| Apple Silicon | 支持 | 原生优化 | 支持 |
| 商业许可 | 大型企业需付费 | 个人免费商业付费 | MIT 开源 |
| Kubernetes | 内置 | 内置 | 通过 k3s 支持 |
**[OrbStack](https://orbstack.dev/)**:以极低的资源占用和接近原生的 I/O 性能著称。对于 Apple Silicon 机型上需要频繁构建镜像的开发者,体验提升尤为明显。个人和教育用途免费。
**[Colima](https://github.com/abiosoft/colima)**:完全开源的命令行方案,底层基于 Lima 虚拟机。适合偏好终端工作流、不需要 GUI 的开发者,或企业中希望避免商业许可限制的团队。
> 上述三种工具均兼容标准的 `docker` CLI 命令 Docker Desktop 切换到 OrbStack Colima 已有的镜像和容器配置通常可以平滑迁移
### 3.7.5 镜像加速
如果在使用过程中发现拉取 Docker 镜像十分缓慢可以配置 Docker [国内镜像加速](3.9_mirror.md)