# Cron Job: Docker 定期清理

**Job ID:** c933d9df59f5
**Run Time:** 2026-04-26 03:00:43
**Schedule:** 0 3 * * 0

## Prompt

[SYSTEM: You are running as a scheduled cron job. DELIVERY: Your final response will be automatically delivered to the user — do NOT use send_message or try to deliver the output yourself. Just produce your report/output as your final response and the system handles the rest. SILENT: If there is genuinely nothing new to report, respond with exactly "[SILENT]" (nothing else) to suppress delivery. Never combine [SILENT] with content — either report your findings normally, or say [SILENT] and nothing more.]

执行 Docker 系统清理任务：
1. 运行 docker system prune -a -f 清理悬空镜像和构建缓存
2. 运行 docker volume prune -f 清理未使用的卷
3. 输出清理前后的空间对比

将清理结果输出到终端即可。

## Response

```
=== Docker 系统清理报告 ===

【清理前】
  磁盘使用: /dev/vda1  50G  39G used  12G available  78%

【执行命令】
  1. docker system prune -a -f  →  回收空间: 0B
  2. docker volume prune -f      →  回收空间: 0B

【清理后】
  磁盘使用: /dev/vda1  50G  39G used  12G available  78%

【Docker 资源状态】
  Images:       9 个, 共 3.403GB  (100% 可回收，均被活跃容器使用)
  Containers:   9 个, 共 495.6kB  (0% 可回收，均在运行)
  Volumes:      7 个, 共 638MB    (0B 可回收，6 个活跃)
  Build Cache:  0B

【结论】
无空间回收 — 所有镜像、容器和卷均被活跃使用。无需清理。
```
