docker-management

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

Updated May 3, 2026
One-click install
npx skills add https://github.com/80portisfound/vibe-learning --skill docker-management-80portisfound
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docker-management
Source: https://github.com/80portisfound/vibe-learning/tree/main/packages/hermes/optional-skills/devops/docker-management
Command: npx skills add https://github.com/80portisfound/vibe-learning --skill docker-management-80portisfound

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-reference commands 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. - Troubleshooting & Cleanup: Diagnose crashing containers, port conflicts, and permission issues, then reclaim disk space with targeted or aggressive prune commands. - Use Case: A web service container keeps exiting immediately. Use the troubleshooting procedure to check logs, identify the failing entrypoint, and relaunch it interactively with an overridden shell to inspect the environment. ## Quick Start Use the docker-management skill to find out why my api 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 crash reason, then run docker run -it --entrypoint /bin/sh IMAGE to open an interactive shell and inspect the environment. Immediate exits usually mean the main process finished or crashed.

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 flags for ports, volumes, and environment variables. docker compose up starts an entire multi-service stack defined in a compose.yml file, handling networks, dependencies, and healthchecks between services automatically.

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.

How do I make a Docker image smaller?▼

Use multi-stage builds to separate build tools from the runtime, pick slim or alpine base images like python:3.12-slim, order layers so dependencies come before source code, and add a .dockerignore file to exclude node_modules and .git.