docker-management

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

14|5|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill docker-management-mlt-oss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-management
Source: https://github.com/MLT-OSS/hermes-agent-go/tree/main/optional-skills/devops/docker-management
Command: npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill docker-management-mlt-oss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing Docker environments involves remembering dozens of CLI commands, flags, and debugging workflows. This Skill provides structured guidance for container lifecycle operations, image management, Compose orchestration, and troubleshooting so you can resolve Docker tasks quickly and correctly. ## Core Features & Use Cases - Container Lifecycle Operations: Run, stop, restart, inspect, and debug containers with correct flags for ports, volumes, environment variables, and resource limits. - Image & Compose Management: Build, tag, push, and prune images, plus manage multi-service Compose stacks with healthchecks and dependency ordering. - Troubleshooting & Cleanup: Diagnose crashing containers, port conflicts, and disk exhaustion, then perform safe targeted or aggressive cleanup. - Use Case: A developer's container keeps exiting immediately. Use this Skill to check logs, inspect exit codes, test with an interactive shell entrypoint, and fix the root cause. ## Quick Start Use the docker-management skill to diagnose why my web container keeps crashing and show me the last 50 log lines.

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 try running the image interactively with docker run -it --entrypoint /bin/sh IMAGE to inspect the environment. The main process usually crashed or finished, so verify your CMD or ENTRYPOINT instruction.

How do I 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 named volumes can be deleted.

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 applications with multiple interconnected services.

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 from outside. Also verify the port mapping with docker port NAME and ensure you used -p hostPort:containerPort when starting the container.

How do I reduce the size of my Docker images?

Use multi-stage builds to separate build and runtime environments, choose slim or alpine base images like python:3.12-slim, combine RUN commands to reduce layers, and add a .dockerignore file to exclude node_modules, .git, and other unnecessary files.

Does this skill require any tools beyond Docker itself?

No additional dependencies are required beyond Docker Engine with Compose v2, which is included in modern Docker installations. Your user must be in the docker group or use sudo to run commands.