docker-management

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

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/episvr/USTB-2026-SummerInternship --skill docker-management-episvr
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docker-management
Source: https://github.com/episvr/USTB-2026-SummerInternship/tree/main/hermes-config/optional-skills/devops/docker-management
Command: npx skills add https://github.com/episvr/USTB-2026-SummerInternship --skill docker-management-episvr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Operating Docker environments involves remembering dozens of CLI commands across containers, images, volumes, networks, and Compose stacks, plus knowing how to debug crashes and reclaim disk space safely. This Skill provides structured procedures and quick references for the full Docker lifecycle. ## 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. - Compose Stack Management: Start, monitor, debug, and tear down multi-service stacks, 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 pruning. - Use Case: A developer's container exits immediately after starting. Use this Skill to check logs, identify the failing entrypoint, relaunch interactively with a shell override, and fix the root cause. ## Quick Start Ask the assistant to start a detached nginx container on port 8080 and then show its recent logs to 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 relaunch interactively using `docker run -it --entrypoint /bin/sh IMAGE` to inspect the environment. The main process finishing or crashing is the usual cause.

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 support healthchecks and service dependencies?▼

Yes, Compose supports healthcheck blocks with test commands, intervals, and retries. Use `depends_on` with `condition: service_healthy` so dependent services like an API wait until a database passes its healthcheck before starting.

Why can't I connect to my app running inside a Docker container?▼

The application is likely binding to 127.0.0.1 inside the container, which is unreachable from the host. Configure the app to bind to 0.0.0.0 and verify the port mapping with `-p hostPort:containerPort` or `docker port NAME`.

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

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