mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 20:31:18 +00:00
style(docs): standardize heading formats and numbering
- Enforce Level 1-3 structural numbering based on SUMMARY.md hierarchy - Remove structural numbering from Level 4+ headings - Eliminate single child headings by converting to bold text - Auto-inject summary text for headings with multiple children missing intro text - Exclude Appendix chapters from structural numbering - Avoid modifying code block contents - Add script to detect non-standard English usage in headers
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Docker 镜像可以支持多种系统架构,这意味着你可以在 `x86_64`、`arm64` 等不同架构的机器上运行同一个镜像。这是通过一个名为 “manifest list” (或称为 “fat manifest”) 的文件来实现的。
|
||||
|
||||
### Manifest List 是什么?
|
||||
### 9.3.1 Manifest List 是什么?
|
||||
|
||||
为了理解多架构镜像的原理,我们需要先了解 Manifest List 的概念。
|
||||
|
||||
@@ -40,7 +40,7 @@ $ docker manifest inspect hello-world
|
||||
}
|
||||
```
|
||||
|
||||
### 使用 `docker buildx` 构建多架构镜像
|
||||
### 9.3.2 使用 `docker buildx` 构建多架构镜像
|
||||
|
||||
`docker buildx` 是构建多架构镜像的最佳实践工具,它屏蔽了底层的复杂性,提供了一键构建多架构镜像的能力。
|
||||
|
||||
@@ -101,7 +101,7 @@ COPY bin/dist-${TARGETOS}-${TARGETARCH} /dist
|
||||
ENTRYPOINT ["/dist"]
|
||||
```
|
||||
|
||||
### 使用 `docker manifest` (底层工具)
|
||||
### 9.3.3 使用 `docker manifest` (底层工具)
|
||||
|
||||
除了 `docker buildx`,我们也可以直接操作 Manifest List 来手动组合不同架构的镜像。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user