fix(content): harden Docker practice guide

This commit is contained in:
yeasy
2026-06-16 21:23:21 -07:00
parent f4e684afeb
commit 9fdffa9d91
67 changed files with 343 additions and 278 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
threshold: 3
```
### 6.3.3 生成 http 认证文件
@@ -156,7 +156,7 @@ volumes:
本书配套的 `06_repository/demo/` 也采用同样约定容器内 registry 监听 `:5000`宿主机通过 `443:5000` 暴露 HTTPS 服务这样可以避免在容器内占用特权端口同时仍让客户端使用 `https://docker.domain.com` 访问
> **版本说明**Compose 配置中明确指定 `registry:2` 版本生产环境建议固定版本 `registry:2.8.3`而非使用 `latest`以保证部署的可重复性
> **版本说明**Compose 配置中明确指定 `registry:2` 版本生产环境建议固定具体补丁版本 `registry:2.8.x`并在新部署时评估 Distribution 3.x不要使用 `latest`以保证部署的可重复性
### 6.3.5 修改 Hosts 文件