Agent Skills
› netalertx/NetAlertX
› netalertx-docker-prune
netalertx-docker-prune
GitHub清理未使用的Docker资源(容器、镜像、卷、网络)以释放磁盘空间或重置环境。需人工确认以防数据丢失,适用于构建缓存损坏或测试前清理场景。
Trigger Scenarios
清理docker
释放磁盘空间
移除未使用的镜像
docker cleanup
Install
npx skills add netalertx/NetAlertX --skill netalertx-docker-prune -g -y
SKILL.md
Frontmatter
{
"name": "netalertx-docker-prune",
"description": "Clean up unused Docker resources. Use this when asked to prune docker, clean docker, remove unused images, free disk space, or docker cleanup. DANGEROUS operation. Requires human confirmation."
}
Docker Prune
DANGER: This destroys containers, images, volumes, and networks. Any stopped container will be wiped and data will be lost.
Command
/workspaces/NetAlertX/.devcontainer/scripts/confirm-docker-prune.sh
What Gets Deleted
- All stopped containers
- All unused images
- All unused volumes
- All unused networks
When to Use
- Disk space is low
- Build cache is corrupted
- Clean slate needed for testing
- After many image rebuilds
Safety
The script requires explicit confirmation before proceeding.
Version History
- 8aec57b Current 2026-07-24 22:14


