ssh-docker-prune

Prune unused Docker containers, images, volumes, and networks via SSH.

6|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-docker-prune
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ssh-docker-prune
Source: https://github.com/Nightreaver/python-ssh-mcp/tree/main/skills/ssh-docker-prune
Command: npx skills add https://github.com/Nightreaver/python-ssh-mcp --skill ssh-docker-prune

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the pruning of unused Docker containers, images, volumes, networks, and system resources, helping to manage disk space efficiently.

Core Features & Use Cases

  • Container Pruning: Removes unused containers, networks, images, and volumes.
  • System Pruning: Frees up space by removing unused Docker system resources.
  • Scope Selection: Prune specific resources like images, volumes, or networks.
  • Aggressive Pruning: Offers an option to remove all unused resources.
  • Use Case: Use this Skill to clean up Docker resources after a deployment or when disk space is running low.

Quick Start

Run the ssh_docker_prune skill to prune unused Docker resources on the host 'docker1'.

Frequently Asked Questions about ssh-docker-prune

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

FAQPage Schema
How do I free up disk space by pruning unused Docker containers and images?

Docker pruning removes unused containers, images, volumes, and networks to reclaim disk space. This Skill automates that cleanup process over SSH, targeting specific resources or aggressively clearing all unused system data.

What's the best way to automate Docker system cleanup after a deployment?

Automating Docker system cleanup after deployment removes leftover unused resources to free up space. This Skill executes pruning commands remotely via SSH, allowing you to clean up images, volumes, or the entire system automatically.

Do I need SSH access to prune Docker resources on a remote host?

Yes, you need SSH access to the remote host and Docker installed on that machine. The Skill uses the SSH connection to execute Docker pruning commands remotely, ensuring unused containers, images, and volumes are safely removed.

Can I target specific Docker resources like volumes for pruning instead of everything?

Yes, you can target specific Docker resources for pruning. The Skill supports scope selection, allowing you to prune only images, volumes, or networks, or perform an aggressive prune to remove all unused Docker system resources.

Why does Docker take up so much disk space and how does pruning fix it?

Docker accumulates unused images, stopped containers, and orphaned volumes that consume disk space. Pruning removes these unused Docker resources, effectively reclaiming disk space and managing system storage efficiently during low space conditions.