Document Docker image cleanup and add docker-prune script.

Explain safe prune vs aggressive prune, compose down --rmi local, and when to run after rebuilds.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-10 23:26:57 +08:00
parent 6265e56a7f
commit f22e3f4d16
4 changed files with 157 additions and 5 deletions
+17 -3
View File
@@ -71,11 +71,25 @@ curl -s http://127.0.0.1:3130/api/health
# {"ok":true,"service":"zhimingge","apiAi":true,...}
```
更多 Docker 说明见 [DOCKER.md](./DOCKER.md)。
更多 Docker 说明见 [DOCKER.md](./DOCKER.md)(含**镜像清理**
---
### 2.5 清理无用 Docker 镜像
多次 `build --no-cache` 后磁盘会堆积旧层,建议定期执行:
```bash
cd /opt/zhimingge
bash scripts/docker-prune.sh
```
深度清理(删除所有未被容器使用的镜像):
```bash
bash scripts/docker-prune.sh --all
```
详细说明见 [DOCKER.md — 镜像清理](./DOCKER.md#镜像清理)。
## 三、宝塔添加站点与反向代理
### 3.1 添加网站