netalertx-docker-prune

Prune stopped containers, unused images, volumes, and networks after human confirmation.

6.9k|426|Updated Dec 23, 2021
One-click install
npx skills add https://github.com/netalertx/NetAlertX --skill netalertx-docker-prune
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: netalertx-docker-prune
Source: https://github.com/netalertx/NetAlertX/tree/main/.github/skills/docker-prune
Command: npx skills add https://github.com/netalertx/NetAlertX --skill netalertx-docker-prune

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the safe cleanup of Docker resources to reclaim disk space and reduce orphaned assets.

Core Features & Use Cases

  • Safe cleanup: Removes stopped containers, unused images, unused volumes, and unused networks.
  • Environment coverage: Applicable to development, CI, and testing workflows.
  • Safety: Requires explicit human confirmation before performing destructive actions.

Quick Start

Execute the confirmation script at /workspaces/NetAlertX/.devcontainer/scripts/confirm-docker-prune.sh to prune Docker resources after prerequisites are verified.

Frequently Asked Questions about netalertx-docker-prune

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reclaim disk space used by Docker containers and images?

Docker prune removes stopped containers, unused images, unused volumes, and unused networks to reclaim disk space. This skill automates the cleanup process with explicit human confirmation to prevent accidental data loss, making it safe for development, testing, and CI environments.

What Docker resources does pruning actually delete?

Docker pruning deletes stopped containers, dangling images, unused volumes, and unused networks. This skill targets these orphaned assets specifically, leaving active resources untouched while freeing disk space in development and CI workflows.

How do I safely prune Docker resources without losing data?

This skill requires explicit human confirmation before executing any deletions, preventing accidental data loss. Run the confirmation script at /workspaces/NetAlertX/.devcontainer/scripts/confirm-docker-prune.sh after prerequisites are verified to safely clean up Docker resources.

Can I automate Docker cleanup in CI and testing environments?

Yes, this skill automates Docker resource cleanup across development, CI, and testing environments. It applies confirmation workflows to ensure safe, controlled deletion of containers, images, volumes, and networks in automated pipelines.

Why should I prune Docker resources regularly?

Regular Docker pruning prevents orphaned containers, images, and volumes from consuming excessive disk space. This skill automates the cleanup process to reduce storage overhead and maintain efficient resource usage in development and CI workflows.

What happens if I don't confirm before Docker resources are pruned?

This skill requires explicit human confirmation before performing any deletions. The confirmation workflow ensures that pruning only executes after approval, protecting against unintended data loss from stopped containers, unused images, volumes, and networks.