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 镜像仓库获取镜像可谓是 Docker 运作的第一步。本节将介绍如何使用 `docker pull` 命令下载镜像,以及如何理解下载过程。
|
||||
|
||||
### docker pull 命令
|
||||
### 4.1.1 docker pull 命令
|
||||
|
||||
从镜像仓库获取镜像的命令是 `docker pull`:
|
||||
|
||||
@@ -61,7 +61,7 @@ $ docker pull ghcr.io/username/myapp:v1.0
|
||||
|
||||
---
|
||||
|
||||
### 下载过程解析
|
||||
### 4.1.2 下载过程解析
|
||||
|
||||
当我们执行 `docker pull` 命令时,Docker 会输出详细的下载进度。让我们以 `ubuntu:24.04` 为例来解析这些信息。
|
||||
|
||||
@@ -108,7 +108,7 @@ flowchart TD
|
||||
|
||||
---
|
||||
|
||||
### 常用选项
|
||||
### 4.1.3 常用选项
|
||||
|
||||
`docker pull` 命令支持多种选项来满足不同的下载需求,例如下载所有标签、指定平台架构等。
|
||||
|
||||
@@ -132,7 +132,7 @@ $ docker pull --platform linux/amd64 nginx
|
||||
|
||||
---
|
||||
|
||||
### 拉取后运行
|
||||
### 4.1.4 拉取后运行
|
||||
|
||||
拉取镜像后,可以基于它启动容器:
|
||||
|
||||
@@ -162,7 +162,7 @@ root@e7009c6ce357:/# exit
|
||||
|
||||
---
|
||||
|
||||
### 镜像加速
|
||||
### 4.1.5 镜像加速
|
||||
|
||||
从 Docker Hub 下载可能较慢。可以配置镜像加速器:
|
||||
|
||||
@@ -190,7 +190,7 @@ $ sudo systemctl restart docker # Linux
|
||||
|
||||
---
|
||||
|
||||
### 验证镜像完整性
|
||||
### 4.1.6 验证镜像完整性
|
||||
|
||||
为了确保下载的镜像没有被篡改且内容一致,我们可以校验镜像的摘要 (Digest)。
|
||||
|
||||
@@ -216,7 +216,7 @@ $ docker pull ubuntu@sha256:4bc3ae6596938cb0d9e5ac51a1152ec9dcac2a1c50829c74abd9
|
||||
|
||||
---
|
||||
|
||||
### 常见问题
|
||||
### 4.1.7 常见问题
|
||||
|
||||
在使用 `docker pull` 过程中,可能会遇到下载速度慢、镜像不存在或磁盘空间不足等问题。以下是一些常见问题的排查思路。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user