docker-management
Manage Docker containers, images, volumes, and Compose.
Skill by merllinsbeard
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/merllinsbeard-docker-management
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
docker-management- Description
- Manage Docker containers, images, volumes, and Compose.
- License
- MIT
- Instructions
- 270 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# Docker Management Manage Docker containers, images, volumes, networks, and Compose stacks using standard Docker CLI commands. No additional dependencies beyond Docker itself. ## When to Use - Run, stop, restart, remove, or inspect containers - Build, pull, push, tag, or clean up Docker images - Work with Docker Compose (multi-service stacks) - Manage volumes or networks - Debug a crashing container or analyze logs - Check Docker disk usage or free up space - Review or optimize a Dockerfile ## Prerequisites - Docker Engine installed and running - User added to the `docker` group (or use `sudo`) - Docker Compose v2 (included with modern Docker installations) Quick check: ```bash docker --version && docker compose version ``` ## Quick Reference | Task | Command | |------|---------| | Run container (background) | `docker run -d --name NAME IMAGE` | | Stop + remove | `docker stop NAME && docker rm NAME` | | View logs (follow) | `docker logs --tail 50 -f NAME` | | Shell into container | `docker exec -it NAME /bin/sh` | | List all containers | `docker ps -a` | | Build image | `docker build -t TAG .` | | Compose up | `docker compose up -d` | | Compose down | `docker compose down` | | Disk usage | `docker system df` | | Cleanup dangling | `docker image prune && docker container prune` | ## Procedure ### 1. Identify the domain Figure out which area the request falls into: - **Container lifecycle** → run, stop, start, restart, rm, pause/unpause - **Container interaction** → exec, cp, logs, inspect, stats - **Image management** → build, pull, push, tag, rmi, save/load - **Docker Compose** → up, down, ps, logs, exec, build, config - **Volumes & networks** → create, inspect, rm, prune, connect - **Troubleshooting** → log analysis, exit codes, resource issues ### 2. Container operations **Run a new container:** ```bash # Detached service with port mapping docker run -d --name web -p 8080:80 nginx # With environment variables docker run -d -e POSTGRES_PASSWORD=secret -e POSTGRES_DB=mydb --name db postgres:16 # With persistent data (named volume) docker run -d -v pgdata:/var/lib/postgresql/data --name db postgres:16 # For development (bind mount source code) docker run -d -v $(pwd)/src:/app/src -p 3000:3000 --name dev my-app # Interactive debugging (auto-remove on exit) docker run -it --rm ubuntu:22.04 /bin/bash # With resource limits and restart policy docker run -d --memory=512m --cpus=1.5 --restart=unless-stopped --name app my-app ``` Key flags: `-d` detached, `-it` interactive+tty, `--rm` auto-remove, `-p` port (host:container), `-e` env var, `-v` volume, `--name` name, `--restart` restart policy. **Manage running containers:** ```bash docker ps # running containers docker ps -a # all (including stopped) docker stop NAME # graceful stop docker start NAME # start stopped container docker restart NAME # stop + start docker rm NAME # remove stopped container docker rm -f NAME # force remove running container docker container prune # remove ALL stopped containers ``` **Interact with containers:** ```bash docker exec -it NAME /bin/sh # shell access (use /bin/bash if available) docker exec NAME env # view environment variables docker exec -u root NAME apt update # run as specific user docker logs --tail 100 -f NAME # follow last 100 lines docker logs --since 2h NAME # logs from last 2 hours docker cp NAME:/path/file ./local # copy file from container docker cp ./file NAME:/path/ # copy file to container docker inspect NAME # full container details (JSON) docker stats --no-stream # resource usage snapshot docker top NAME # running processes ``` ### 3. Image management ```bash # Build docker build -t my-app:latest . docker build -t my-app:prod -f Dockerfile.prod . docker build --no-cache -t my-app . # clean rebuild DOCKER_BUILDKIT=1 docker build -t my-app . # faster with BuildKit # Pull and push docker pull node:20-alpine
From merllinsbeard/merlin-CTO, MIT.
More from merllinsbeard/merlin-CTO
- 0.548score
kanban-board-operations
merllinsbeard
Use when cleaning or reconciling a crowded Kanban board.
SkillBFreshness: B★ 1Claude Code +9 - 0.548score
codebase-capability-map
merllinsbeard
Use when mapping platform capabilities from source+docs.
SkillBFreshness: B★ 1Claude Code +9 - 0.548score
ask-merlin
merllinsbeard
Use only when the user asks which skill or flow.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
cli-agent-first
merllinsbeard
Use when choosing direct, subagent, or coding CLI execution.
SkillBFreshness: B★ 1Claude Code +9 - 0.543score
production-release-verification
merllinsbeard
Verify immutable production releases.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
concise
merllinsbeard
Concise response style — lead with the result, cut narration.
SkillBFreshness: B★ 1Claude Code +9 - 0.538score
merge-reconciler
merllinsbeard
Neutral third-party resolution of agent merge conflicts.
SkillBFreshness: B★ 1Claude Code +9 - 0.538score
how-to-talk
merllinsbeard
Apply before every human-facing response.
SkillBFreshness: B★ 1Claude Code +9 - 0.538score
computer-use
merllinsbeard
Drive the desktop in the background without stealing focus.
SkillBFreshness: B★ 1Claude Code +9 - 0.519score
blast-radius
merllinsbeard
Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of…
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 25, 2026 (2 months ago)
- Last release
- Aug 25, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/merllinsbeard/merlin-CTO
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from merllinsbeard
- 0.548score
kanban-board-operations
merllinsbeard
Use when cleaning or reconciling a crowded Kanban board.
SkillBFreshness: B★ 1Claude Code +9 - 0.548score
codebase-capability-map
merllinsbeard
Use when mapping platform capabilities from source+docs.
SkillBFreshness: B★ 1Claude Code +9 - 0.548score
ask-merlin
merllinsbeard
Use only when the user asks which skill or flow.
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
cli-agent-first
merllinsbeard
Use when choosing direct, subagent, or coding CLI execution.
SkillBFreshness: B★ 1Claude Code +9 - 0.543score
production-release-verification
merllinsbeard
Verify immutable production releases.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
concise
merllinsbeard
Concise response style — lead with the result, cut narration.
SkillBFreshness: B★ 1Claude Code +9
Cite this page
docker-management skill. Agent Mart. https://agentmart.dev/skills/merllinsbeard-docker-management (last updated 2026-10-24)