chore: remove unused historic image files

This commit is contained in:
Baohua Yang
2026-02-21 16:43:31 -08:00
parent 79ac9c639a
commit 6aa7a51fef
124 changed files with 1001 additions and 492 deletions

View File

@@ -31,6 +31,7 @@ CMD ["node", "server.js"]
```
**优点**
- 直接执行指定程序是容器的 PID 1
- 正确接收信号 ( SIGTERM)
- 无需 shell 解析
@@ -62,6 +63,8 @@ CMD ["sh", "-c", "echo $HOME"]
### exec 格式 vs shell 格式
相关信息如下表
| 特性 | exec 格式 | shell 格式 |
|------|----------|-----------|
| 主进程 | 指定的程序 | `/bin/sh` |
@@ -163,6 +166,8 @@ CMD ["nginx", "-g", "daemon off;"]
### CMD vs ENTRYPOINT
相关信息如下表
| 指令 | 用途 | 运行时行为 |
|------|------|-----------|
| **CMD**| 默认命令 | `docker run` 参数会**覆盖** |