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

@@ -129,14 +129,15 @@ $ docker attach 容器名
`attach` 会附加到容器的**主进程**PID 1的标准输入输出
```
┌─────────────────────────────────────────┐
│ 容器 │
┌─────────────────────────────────┐ │
PID 1: /bin/bash (主进程) │◄───┼─── docker attach 附加到这里
└─ 你的输入直接发送到主进程 │ │
└─────────────────────────────────┘
└─────────────────────────────────────────┘
```mermaid
flowchart LR
subgraph Container ["容器"]
direction TB
subgraph Process ["主进程"]
P1["PID 1: /bin/bash<br>(你的输入直接发送到主进程)"]
end
end
Attach["docker attach"] -->|"附加到这里"| P1
```
#### docker attach 示例