docker-management

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

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/azaanaliraza/operarius --skill docker-management-azaanaliraza
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docker-management
Source: https://github.com/azaanaliraza/operarius/tree/main/src-tauri/bin/hermes/optional-skills/devops/docker-management
Command: npx skills add https://github.com/azaanaliraza/operarius --skill docker-management-azaanaliraza

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing Docker environments involves remembering dozens of CLI commands, flags, and troubleshooting steps across containers, images, volumes, networks, and Compose stacks. This Skill provides structured operational guidance for the full Docker lifecycle, from running containers to debugging crashes and reclaiming disk space. ## 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. - Image & Compose Management: Build, tag, push, and prune images, plus orchestrate multi-service stacks with Docker Compose including healthchecks and dependencies. - Troubleshooting & Cleanup: Diagnose common failures like port conflicts, immediate container exits, and disk exhaustion, then apply targeted or aggressive cleanup safely. - Use Case: A developer's container keeps exiting immediately after startup. The Skill guides them to check logs, test with an interactive shell entrypoint, and identify whether the main process crashed or the app bound to the wrong interface. ## Quick Start Ask the assistant to help you start a PostgreSQL container with a persistent volume and verify it is running correctly.

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. 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 passed on the command line, while docker compose up starts multi-service stacks defined in a compose.yml file with networking, dependencies, and healthchecks configured declaratively.

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 confirm the -p host:container flag was set correctly.

How do I make a Docker image smaller?▼

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

Does this require any tools beyond Docker itself?▼

No additional dependencies are needed beyond Docker Engine with Compose v2, which is included in modern Docker installations. Verify your setup with docker --version and docker compose version before starting.