docker-management

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

1|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/Lento47/arcana-community --skill docker-management-lento47
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docker-management
Source: https://github.com/Lento47/arcana-community/tree/main/skills/devops/docker-management
Command: npx skills add https://github.com/Lento47/arcana-community --skill docker-management-lento47

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing Docker environments involves remembering dozens of CLI commands across containers, images, volumes, networks, and Compose stacks, plus knowing how to debug failures and reclaim disk space safely. This Skill provides structured operational guidance for the full Docker lifecycle so you can run, debug, clean up, and optimize without memorizing flags. ## 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, and validate multi-service stacks with healthchecks, dependency ordering, and log following. - Debugging & Cleanup: Diagnose crashing containers, analyze logs, check disk usage with docker system df, and perform safe targeted pruning. - Dockerfile Optimization: Apply multi-stage builds, layer ordering, .dockerignore, and non-root users to shrink and secure images. - Use Case: A web service container keeps exiting immediately. Use this Skill to check logs, identify the failing entrypoint, restart with an interactive shell for debugging, and verify the fix with docker ps and a port check. ## Quick Start Use the docker-management skill to find why my api container keeps exiting and restart it with the correct port mapping.

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 explore the image interactively. Immediate exits usually mean the main process finished or crashed on startup.

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 data loss is acceptable.

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

docker run starts a single container with inline flags, while docker compose up starts a multi-service stack defined in a compose.yml file with networking, dependencies, and healthchecks. Use Compose when services need to communicate, such as an API with its database.

Why can't I connect to my containerized app 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 flag is set and reconfigure the app to listen on all interfaces.

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 excluding node_modules and .git.

Does this skill require anything beyond Docker itself?▼

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