mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 04:14:38 +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 image ls` 命令列出本地主机上的镜像。
|
||||
|
||||
### 基本用法
|
||||
### 4.2.1 基本用法
|
||||
|
||||
查看本地已下载的镜像:
|
||||
|
||||
@@ -19,7 +19,7 @@ ubuntu noble 329ed837d508 3 days ago 78MB
|
||||
|
||||
---
|
||||
|
||||
### 输出字段说明
|
||||
### 4.2.2 输出字段说明
|
||||
|
||||
`docker image ls` 命令默认输出的列表包含仓库名、标签、镜像 ID、创建时间和占用空间等信息。
|
||||
|
||||
@@ -41,7 +41,7 @@ ubuntu noble 329ed837d508 3 days ago 78MB
|
||||
|
||||
---
|
||||
|
||||
### 理解镜像大小
|
||||
### 4.2.3 理解镜像大小
|
||||
|
||||
Docker 镜像的大小可能与我们通常理解的文件大小有所不同,这涉及到分层存储的概念。
|
||||
|
||||
@@ -83,7 +83,7 @@ Build Cache 0 0 0B 0B
|
||||
|
||||
---
|
||||
|
||||
### 过滤镜像
|
||||
### 4.2.4 过滤镜像
|
||||
|
||||
随着本地镜像数量的增加,我们需要更有效的方式来查找特定的镜像。Docker 提供了多种过滤方式。
|
||||
|
||||
@@ -139,7 +139,7 @@ $ docker images -f label=maintainer=example@email.com
|
||||
|
||||
---
|
||||
|
||||
### 虚悬镜像
|
||||
### 4.2.5 虚悬镜像
|
||||
|
||||
在镜像列表里,你可能会看到一些仓库名和标签都为 `<none>` 的镜像,这类镜像被称为虚悬镜像。
|
||||
|
||||
@@ -174,7 +174,7 @@ $ docker image prune
|
||||
|
||||
---
|
||||
|
||||
### 中间层镜像
|
||||
### 4.2.6 中间层镜像
|
||||
|
||||
除了虚悬镜像,`docker image ls` 默认列出的只是顶层镜像。还有一种镜像是为了加速镜像构建、重复利用资源而存在的中间层镜像。
|
||||
|
||||
@@ -196,7 +196,7 @@ $ docker images -a
|
||||
|
||||
---
|
||||
|
||||
### 格式化输出
|
||||
### 4.2.7 格式化输出
|
||||
|
||||
为了配合脚本使用或展示更关注的信息,我们可以使用 `--format` 参数来自定义输出格式。
|
||||
|
||||
@@ -278,7 +278,7 @@ ubuntu 24.04 78MB
|
||||
|
||||
---
|
||||
|
||||
### 常用命令组合
|
||||
### 4.2.8 常用命令组合
|
||||
|
||||
运行以下命令:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user