docker-management

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

Updated Sep 10, 2026
One-click install
npx skills add https://github.com/loteiron/ZeusAgent --skill docker-management-loteiron
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docker-management
Source: https://github.com/loteiron/ZeusAgent/tree/main/optional-skills/devops/docker-management
Command: npx skills add https://github.com/loteiron/ZeusAgent --skill docker-management-loteiron

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Operating Docker environments involves 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 and 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 pitfalls table and safe, targeted prune workflows. - 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 diagnose why my web container keeps exiting 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 find the crash cause, 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.

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 (space, not hyphen). Verify with docker compose version.

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

The app likely binds to 127.0.0.1 inside the container, which is unreachable from the host. The application must bind to 0.0.0.0, and the port must be published with the -p host:container flag.

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

Use multi-stage builds to separate build and runtime environments, 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.