docker-management

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

Updated Aug 22, 2026
One-click install
npx skills add https://github.com/vivekgoquest/hermes-agent-stable --skill docker-management-vivekgoquest
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docker-management
Source: https://github.com/vivekgoquest/hermes-agent-stable/tree/main/optional-skills/devops/docker-management
Command: npx skills add https://github.com/vivekgoquest/hermes-agent-stable --skill docker-management-vivekgoquest

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Operating Docker environments requires remembering dozens of CLI commands, flags, and troubleshooting patterns across containers, images, volumes, networks, and Compose stacks. This Skill provides structured procedures and quick references so container operations, debugging, and cleanup are performed correctly and safely. ## Core Features & Use Cases - Container Lifecycle Management: Run, stop, restart, inspect, and shell into containers with correct flags for ports, environment variables, volumes, and resource limits. - Image & Compose Operations: Build, tag, push, and prune images, plus manage multi-service Compose stacks with healthchecks and validation. - Troubleshooting & Cleanup: Diagnose crashing containers, port conflicts, and disk pressure with a pitfall table and safe targeted prune commands. - Use Case: A developer's container exits immediately after deployment. Use this Skill to check logs, inspect exit codes, test with an interactive entrypoint shell, and fix the root cause. ## Quick Start Use the docker-management skill to start a detached nginx container on port 8080 and verify it is running.

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 crash output, then run docker run -it --entrypoint /bin/sh IMAGE to explore the image interactively. Immediate exits usually mean the main process finished or crashed on startup.

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.

Does Docker Compose come with modern Docker installations?▼

Yes, Docker Compose v2 is included with modern Docker installations as a plugin, invoked as docker compose rather than the older docker-compose binary. Verify with docker compose version.

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, which is unreachable from outside. The app must bind to 0.0.0.0, and you must map the port with -p host:container when running the container.

How do I reduce the size of a Docker image?▼

Use multi-stage builds to separate build tools from the runtime, 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 and .git.