docker-management

A set of MCP tools for managing Docker containers and images on a local host. Docker packages applications and their dependencies into isolated units called containers.

In plain words
What is it for?
Use it to list, start, stop, restart, inspect, or remove containers and images, read logs, run commands inside containers, and check CPU or memory usage.
Why use it?
It centralizes common container tasks and provides a troubleshooting sequence for checking running services, logs, commands, and resource use.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ofershap/mcp-server-docker/docker-management
Any agent
npx skills add ofershap/mcp-server-docker --skill docker-management
Clone the repo
git clone --depth 1 https://github.com/ofershap/mcp-server-docker

Made for: Claude Code, Codex.

Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 535 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00048 $0.00535
Opus 5 $0.00024 $0.00267
Sonnet 5 $0.00010 $0.00107
Haiku 4.5 $0.00005 $0.00053

Measured 2d ago against content hash 38a090cfaa67, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docker-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/docker-management/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Docker Management via MCP

Use this skill when you need to manage Docker containers, inspect logs, run commands inside containers, or check resource usage.

Available Tools

Tool What it does
list_containers List running (or all) containers with status, ports, image
container_logs Get recent logs from a container
start_container Start a stopped container
stop_container Stop a running container
restart_container Restart a container
remove_container Remove a container (optional force)
exec_command Execute a command inside a running container
container_stats Get live CPU, memory, and network stats
list_images List all Docker images on the host
remove_image Remove a Docker image

Workflow

  1. Start with list_containers to see what's running
  2. Use container names or IDs from the list for all other operations
  3. For debugging: container_logs first, then exec_command to investigate
  4. Use container_stats to check resource usage when diagnosing performance issues

Key Patterns

  • list_containers shows only running containers by default; pass all: true for stopped ones too
  • container_logs returns the last N lines; pass tail to control how many
  • exec_command runs inside a running container; the container must be started first
  • remove_container with force: true stops and removes in one step

Error Scenarios

  • Cannot connect to Docker: Docker Desktop/daemon not running or MCP lacks socket permissions
  • Container not found: run list_containers with all: true for stopped IDs/names
  • exec_command fails: container must be running; shell may not exist in minimal images
  • Empty logs: container just started or logging driver differs; increase tail or check app stdout

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 51 lines · 48 tokens per session scan A 38a090cfaa67

Subscribe to this mod's changes

docker-management is a skill published in the GitHub repository ofershap/mcp-server-docker (2 stars, last pushed 23d ago), licensed MIT. It adds 48 tokens to every session and 535 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

Docker Compose Generator

Generates production-ready docker-compose.yml files for any application stack.

Notysoty/openagentskills · 17 tokens

code-engine-deploy

IBM Code Engine deployment skill. Use when deploying, managing, or troubleshooting IBM Code Engine applications, jobs, secrets, config maps, domain mappings, container builds, or ICR images. Use for: deploy to code engine, code engine app, code engine job, build container image, push image, ICR registry, MCP tools…

markusvankempen/code-engine-mcp-server · 88 tokens

devops-dockerfile-optimizer

Activate when the user asks to "optimize this Dockerfile," "make my docker image smaller," "reduce docker image size," "speed up docker build," "fix slow docker rebuilds," "my Docker builds are slow / cache always misses," "convert to multi-stage build," "harden my container / run as non-root," or pastes a Dockerfile…

ieeecsopen/mcp-cs · 264 tokens

new-service

Add a new service to Harbor — scaffold the compose config, environment variables, metadata, documentation, and cross-service integrations. Use this skill whenever the user wants to add a new service to Harbor, integrate a new tool/app/model server, create a compose configuration for a new project, or onboard any…

av/harbor · 139 tokens

skillshare-devcontainer

Run CLI commands, tests, and debugging inside the skillshare devcontainer. Use this skill whenever you need to: execute skillshare CLI commands for verification, run Go tests (unit or integration), reproduce bugs, test new features, start the web UI, or perform any operation that requires a Linux environment. All CLI…

runkids/skillshare · 122 tokens

dokploy-deploy

This skill should be used when user asks to "deploy with Dokploy", "use Dokploy Cloud", "manage self-hosted Dokploy", "deploy Docker Compose on Dokploy", "manage Dokploy databases", "configure Dokploy domains", or "look up Dokploy CLI commands".

fcakyon/claude-codex-settings · 63 tokens