ssh-docker-rmi

Remove Docker images from SSH hosts with dependency handling and force options.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manages the removal of Docker images with fine-grained control, allowing for safe and targeted image deletion.

Core Features & Use Cases

  • Image Removal: Safely remove Docker images, including forceful removal if necessary.
  • Scope Control: Remove specific images or all images, with the option to force deletion of dependent images.
  • Use Case: When you need to remove an image that is no longer needed, but is being used by containers. Use ssh_docker_rmi to ensure it's removed safely without disrupting your environment.

Quick Start

Use the ssh_docker_rmi skill to remove the Docker image 'nginx:1.25' from the host 'docker1'.

Frequently Asked Questions about ssh-docker-rmi

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

FAQPage Schema
How do I remove Docker images from a remote host via SSH?▼

You can remove Docker images from a remote host by executing targeted SSH commands to safely delete specific images without disrupting your active containerized environments.

Can I force delete Docker images being used by containers?▼

Yes, you can force delete Docker images currently used by containers by applying a forceful deletion option, which handles dependencies to ensure the targeted image is removed.

Does this Docker image management approach support Windows and Linux targets?▼

Yes, this Docker image management approach supports both Linux and Windows SSH targets, allowing administrators to manage container operations across mixed system environments.

What is the safest way to delete unused Docker images without breaking dependencies?▼

The safest way to delete unused Docker images is using a targeted removal process that handles dependencies carefully, ensuring you do not disrupt running containers in your environment.

How do I clean up all Docker images on a specific host?▼

To clean up all Docker images on a specific host, you can configure the removal scope to target every image, utilizing forceful deletion options to handle any existing container dependencies.

Why should I use SSH for Docker image management instead of direct local commands?▼

Using SSH for Docker image management allows you to execute remote administration tasks safely across specified hosts, providing precise control over image deletion without requiring direct local access.