AgentSkillsCN

netalertx-docker-prune

清理未使用的 Docker 资源。当用户需要执行 Docker 清理、删除废弃镜像、释放磁盘空间,或进行 Docker 清理操作时,可使用此技能。请注意:此操作存在较高风险,需人工确认后方可执行。

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

bash
/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.