Fix ascii figures

This commit is contained in:
Baohua Yang
2026-02-21 10:59:17 -08:00
parent 5ae315c9dd
commit ad68b2d973
7 changed files with 89 additions and 73 deletions

View File

@@ -16,25 +16,29 @@ Docker Registry 是镜像分发和管理的核心组件。本节将介绍 Regist
Docker Registry 中可以包含多个 Repository每个 Repository 可以包含多个 Tag如图 2-2 所示它们之间具有清晰的层级关系
```
┌─────────────────────────────────────────────────────────────────────┐
│ Docker Registry │
│ (如 Docker Hub
┌─────────────────────────────────────────────────────────────┐ │
│ │ Repository仓库: nginx │ │
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │
│ :latest │ │ :1.25 │ │ :1.24 │ │ :alpine │ ... │ │
(tag) (tag) │ │ (tag) │ │ (tag) │ │ │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ │ │
│ └─────────────────────────────────────────────────────────────┘ │
┌─────────────────────────────────────────────────────────────┐ │
Repository仓库: mysql │ │
│ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │
│ :latest │ │ :8.0 │ │ :5.7 │ ... │ │
│ │ └─────────┘ └─────────┘ └─────────┘ │ │
└─────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘
```mermaid
flowchart TB
subgraph Registry ["Docker Registry如 Docker Hub"]
direction TB
subgraph RepoNginx ["Repository仓库: nginx"]
direction LR
N1(":latest (tag)")
N2(":1.25 (tag)")
N3(":1.24 (tag)")
N4(":alpine (tag)")
N5("...")
N1 ~~~ N2 ~~~ N3 ~~~ N4 ~~~ N5
end
subgraph RepoMysql ["Repository仓库: mysql"]
direction LR
M1(":latest")
M2(":8.0")
M3(":5.7")
M4("...")
M1 ~~~ M2 ~~~ M3 ~~~ M4
end
RepoNginx ~~~ RepoMysql
end
```
2-2 RegistryRepository Tag 的层级关系