docker-management

Manage Docker containers, images, volumes, networks, and Compose stacks via CLI commands.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/xu1713/openhorse --skill docker-management-xu1713
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-management
Source: https://github.com/xu1713/openhorse/tree/main/openhorse/openhorse/optional-skills/devops/docker-management
Command: npx skills add https://github.com/xu1713/openhorse --skill docker-management-xu1713

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing Docker environments involves remembering dozens of CLI commands, flags, and troubleshooting steps across containers, images, volumes, networks, and Compose stacks. This Skill provides structured operational guidance for the full Docker lifecycle, from running containers to debugging crashes and reclaiming disk space. ## Core Features & Use Cases - Container Lifecycle Operations: Run, stop, restart, inspect, and shell into containers with correct flags for ports, volumes, environment variables, and resource limits. - Image & Compose Management: Build, tag, push, and prune images, plus orchestrate multi-service stacks with Docker Compose including healthchecks and dependency ordering. - Debugging & Cleanup: Diagnose crashing containers via logs and exit codes, analyze disk usage with docker system df, and perform safe targeted cleanup. - Use Case: A developer's container keeps exiting immediately. Use this Skill to check logs, identify the failing entrypoint, relaunch interactively with a shell override, and fix the root cause. ## Quick Start Use the docker-management skill to diagnose why my web container keeps crashing and show me its recent logs.

Frequently Asked Questions about docker-management

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

FAQPage Schema
How do I debug a Docker container that exits immediately?

Check the container logs with docker logs NAME to see the error, then inspect the exit code via docker ps -a. You can relaunch interactively with docker run -it --entrypoint /bin/sh IMAGE to explore the container environment directly.

How to free up disk space used by Docker?

Start with docker system df to see what consumes space, then run targeted cleanup: docker container prune for stopped containers, docker image prune for dangling images, and docker volume prune for unused volumes. Avoid docker system prune -a --volumes unless you confirm data loss is acceptable.

What is the difference between docker run and docker compose up?

docker run starts a single container with CLI flags, while docker compose up starts multi-service stacks defined in a compose.yml file with networking, dependencies, and healthchecks configured declaratively. Use Compose for multi-container applications.

Why can't I connect to my Docker container from the host?

The application inside the container is likely binding to 127.0.0.1 instead of 0.0.0.0, making it unreachable through port mapping. Verify the -p host:container port flag is set and reconfigure the app to listen on all interfaces.

Does this skill require any dependencies beyond Docker?

No additional dependencies are required beyond Docker Engine itself and Docker Compose v2, which is included with modern Docker installations. Verify your setup with docker --version and docker compose version.