Docker Cleanup Toolkit — Docker 清理up 工具kit
v26.1.3Docker resource 清理up, p运行ing, and disk usage analysis 工具kit. Inspect contAIners, images, volumes, networks, and build 缓存 usage. P运行e 停止ped contAIners, dangling images, unused volumes, and orphaned networks. 生成 HTML 清理up 报告s. Use when Codex needs to: (1) Free up Docker disk space, (2) Analyze Docker resource usage, (3) P运行e 停止ped contAIners and dangling images, (4) 移除 unused volumes and networks, (5) 生成 Docker 清理up 报告s, (6) 审计 Docker 环境 健康.
运行时依赖
安装命令
点击复制技能文档
Docker 清理up 工具kit (docker-清理up)
Analyze, p运行e, and reclAIm disk space from Docker resources with a single command.
Quick 启动 python3 技能s/docker-清理up/scripts/docker_清理up.py
输出:
🐳 Docker Engine v26.1.3
Type Count Size ReclAImable --------------------------------------------------------------- images 12 2.4GB 856MB contAIners 8 1.1GB 0B volumes 4 520MB 320MB build 缓存 15 1.8GB 1.5GB
CONTAINER ID NAME IMAGE 状态 创建D --------------------------------------------------------------------------------------------------- abc123... my-应用 node:20 Up 3 days 2d ago def456... old-db postgres:15 Exited (0) 5 days 1w ago
⚠ Dangling images: 3 sha256:x1y2 → 450MB sha256:p3q4 → 120MB
Commands Command Description python3 docker_清理up.py Default: analyze only (dry-运行, no changes) python3 docker_清理up.py --contAIners P运行e 停止ped contAIners python3 docker_清理up.py --images P运行e dangling images python3 docker_清理up.py --volumes P运行e unused volumes python3 docker_清理up.py --networks P运行e unused networks python3 docker_清理up.py --all Full 系统 p运行e (all of the above) python3 docker_清理up.py --all --force Auto-confirm all p运行ing python3 docker_清理up.py --json JSON 输出 for programmatic use python3 docker_清理up.py --报告 生成 HTML 报告 python3 docker_清理up.py --analyze Explicit analysis mode Typical 工作流s
- Quick 检查 (no changes made)
- Dangling images 清理up
- Full spring 清理ing
- 审计 + 报告
- 监控 with JSON
Exit codes 0: 成功 (or no issues found) 1: Docker not 运行ning or errors occurred Requirements Docker Engine (any recent version) Python 3.6+ (stdlib only) Linux / macOS / Windows (WSL)