Agent skill

Docker Management

by AlexAI-MCP in AlexAI-MCP/hermes-CCC

Manage Docker containers, images, volumes, networks, and Compose stacks - lifecycle ops, debugging, cleanup, and Dockerfile optimization.

MITAuto-check passedDevOps & Cloud

Install Docker Management

skills CLI
$ npx skills add AlexAI-MCP/hermes-CCC --skill docker-management -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AlexAI-MCP/hermes-CCC docker-management --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/docker-management .claude/skills/docker-management && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docker-management
GitHub stars
135
Token cost
~2.2k tokens
SKILL.md length
902 words
Files
1
Skills in repo
44
Repo updated
First seen
Licence
MIT

At a glance

Manage Docker containers, images, volumes, networks, and Compose stacks - lifecycle ops, debugging, cleanup, and Dockerfile optimization.

  • Tasks that involve Containers
  • SKILL.md covers Purpose, Core Mental Model, Container Lifecycle and Common Lifecycle Commands, plus 20 more sections
  • Calls docker and jq

What it does

Docker Management is an agent skill from AlexAI-MCP/hermes-CCC. Manage Docker containers, images, volumes, networks, and Compose stacks - lifecycle ops, debugging, cleanup, and Dockerfile optimization.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Containers. It works with Docker. The repository describes itself as: Hermes Agent ported to Claude Code Channel — 46 native skills, no OAuth, no external process. The licence is MIT.

When your agent uses it

  • Tasks that involve Containers

Example prompts

  • “/docker-management”

Requirements

  • Python 3
  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit 8107e89. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • docker
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use docker, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Docker Management loads about 2.2k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 902 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from AlexAI-MCP/hermes-CCC at commit 8107e89, republished under its MIT licence (© AlexAI-MCP). 902 words, ~2,198 tokens.

Download SKILL.mdSave it as .claude/skills/docker-management/SKILL.md (or your agent's skills folder).
name
docker-management
description
Manage Docker containers, images, volumes, networks, and Compose stacks - lifecycle ops, debugging, cleanup, and Dockerfile optimization.
version
1.0.0
author
hermes-CCC (ported from Hermes Agent by NousResearch)
license
MIT

Docker Management

Purpose

  • Use this skill to run, inspect, debug, and clean up Docker workloads.
  • Prefer it when the task involves containers, images, networks, volumes, or Compose stacks.
  • This skill covers both day-to-day lifecycle operations and practical debugging patterns.

Core Mental Model

  • Images are immutable build artifacts.
  • Containers are running or stopped instances of images.
  • Volumes persist data outside the container filesystem lifecycle.
  • Networks define service-to-service connectivity.
  • Compose describes multi-container applications declaratively.

Container Lifecycle

  • Create and run a container.
  • Start a stopped container.
  • Stop a running container.
  • Restart a container after config or dependency issues.
  • Remove a container when it is no longer needed.

Common Lifecycle Commands

bash
docker run -d --name myapp -p 8080:80 -v ./data:/data myimage
docker start myapp
docker stop myapp
docker restart myapp
docker rm myapp
  • -d runs the container in detached mode.
  • --name assigns a stable container name.
  • -p 8080:80 maps host port 8080 to container port 80.
  • -v ./data:/data mounts a host path into the container.

Run Command Pattern

bash
docker run -d --name myapp -p 8080:80 -v ./data:/data myimage

Use this pattern when you need:

  • background execution
  • a predictable container name
  • host-to-container port mapping
  • local bind-mount persistence

Inspect Running Containers

bash
docker ps
docker ps -a
  • docker ps shows running containers only.
  • docker ps -a shows all containers including exited ones.
  • Exited containers often reveal crash-loop or entrypoint problems.

Exec Into a Container

bash
docker exec -it myapp bash
  • Use this when the container image includes bash.
  • Fall back to sh for slimmer images:
bash
docker exec -it myapp sh

Useful checks inside a container:

  • verify file paths
  • inspect environment variables
  • test network reachability
  • check permissions
  • run the application command manually

View Logs

bash
docker logs -f myapp
  • Use -f to follow logs live.
  • Add --tail 100 to reduce noise when the log is very large.
  • Container logs are the fastest first stop for boot failures.

List Images, Volumes, and Networks

bash
docker images
docker volume ls
docker network ls
  • docker images helps identify build tags and old layers.
  • docker volume ls helps track stateful storage.
  • docker network ls is useful when debugging Compose service communication.

Build Images

bash
docker build -t myapp:latest .
  • Tag images explicitly.
  • Rebuild after Dockerfile changes, dependency changes, or copy-step changes.
  • Keep the build context small with a .dockerignore.

Dockerfile Baseline

dockerfile
FROM python:3.12-slim

WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .
CMD ["python", "app.py"]
  • Copy dependency manifests before source code to improve layer caching.
  • Use a narrow base image unless native toolchains are required.

Multi-Stage Dockerfile Pattern

dockerfile
FROM node:22 AS build
WORKDIR /src
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM nginx:alpine
COPY --from=build /src/dist /usr/share/nginx/html
HEALTHCHECK CMD wget -qO- http://localhost/ || exit 1
  • Build dependencies stay in the builder stage.
  • The final stage is smaller and carries less attack surface.
  • Multi-stage builds are standard for frontend artifacts, Go binaries, and compiled assets.

Health Checks

  • Define health checks in the Dockerfile when the service has a meaningful liveness probe.
  • Health checks help Compose and orchestration layers reason about readiness.

Example:

dockerfile
HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD curl -fsS http://localhost:8080/health || exit 1
  • Prefer an explicit application health endpoint.
  • Avoid health checks that pass before dependencies are ready unless that is intentional.

Docker Compose Basics

bash
docker compose up -d
docker compose logs
docker compose down
  • docker compose up -d starts the stack in the background.
  • docker compose logs shows service logs across the stack.
  • docker compose down stops and removes the stack's containers and network.

Minimal Compose Example

yaml
services:
  app:
    build: .
    ports:
      - "8080:8080"
    environment:
      APP_ENV: development
    depends_on:
      - redis

  redis:
    image: redis:7-alpine
  • Compose is the default choice for local multi-service development.
  • Keep service names stable because they also become DNS names on the Compose network.

Inspect Container Metadata

bash
docker inspect myapp | jq '.[0].NetworkSettings'
  • Use docker inspect to view full JSON metadata.
  • Pipe through jq to isolate fields that matter.
  • Useful fields include mounts, networks, exposed ports, health status, and entrypoint configuration.

Resource Usage

bash
docker stats
  • This gives a live view of CPU, memory, network I/O, and block I/O.
  • Use it to spot memory leaks, unexpected idle CPU, or runaway workers.

Copy Files In and Out

bash
docker cp file.txt myapp:/app/
docker cp myapp:/app/output.log ./output.log
  • docker cp is useful for hot inspection, artifact extraction, and ad hoc debugging.
  • Prefer rebuilds for durable fixes, but docker cp can unblock investigation quickly.
Show full SKILL.md (346 more words)Show less

Cleanup

bash
docker system prune -af
docker volume prune
  • docker system prune -af removes unused containers, networks, dangling images, and build cache aggressively.
  • docker volume prune removes unused volumes.
  • Be careful: pruning can destroy useful cached layers and orphaned but still valuable data.

Common Debugging Patterns

Override the Entrypoint
bash
docker run --rm -it --entrypoint sh myimage
  • Override the entrypoint when the default startup command exits too quickly.
  • This lets you inspect the filesystem and run the target process manually.
Check Environment Variables
bash
docker exec -it myapp env
  • Verify that expected secrets, ports, and mode flags are actually present.
  • Many container bugs reduce to missing or misspelled env vars.
Check the Effective Command
bash
docker inspect myapp | jq '.[0].Config.Entrypoint, .[0].Config.Cmd'
  • This helps distinguish build-time assumptions from runtime reality.
  • It is especially useful when wrapper scripts are involved.
Verify Mounts
bash
docker inspect myapp | jq '.[0].Mounts'
  • Bind-mount mistakes are common in local development.
  • Check source path, destination path, and access mode.
Test Networking
bash
docker exec -it myapp sh -c "wget -qO- http://redis:6379 || true"
  • Test container-to-container DNS and reachability from inside the network namespace.
  • For HTTP services, use curl or wget.
  • For TCP-only services, use the relevant client or a port probe.

Image Hygiene

  • Pin important base images when reproducibility matters.
  • Use slim runtime images where possible.
  • Minimize package-manager caches and temporary files.
  • Copy only what is needed.
  • Keep secrets out of the image entirely.

Security and Reliability Notes

  • Do not bake credentials into Dockerfiles.
  • Avoid running as root when the workload does not require it.
  • Use read-only filesystems or dropped capabilities where appropriate.
  • Scan images regularly with vulnerability tools.

Operational Guidance

  • Prefer Compose for local stacks rather than long hand-written docker run chains.
  • Use docker logs -f first when a service does not start cleanly.
  • Use docker inspect when port mappings or mounts behave unexpectedly.
  • Use health checks for services that depend on internal readiness.
  • Prune deliberately, not reflexively.

Summary

  • Manage container lifecycle with run, start, stop, restart, and rm.
  • Build images with docker build -t myapp:latest ..
  • Debug with docker exec -it myapp bash, docker logs -f myapp, docker inspect, and docker stats.
  • Operate stacks with docker compose up -d, docker compose logs, and docker compose down.
  • Clean carefully with docker system prune -af and docker volume prune.
  • Use multi-stage Dockerfiles and health checks to improve runtime quality and image hygiene.

© AlexAI-MCP, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/docker-management of AlexAI-MCP/hermes-CCC.

Open the folder on GitHubat commit 8107e89

Compare with similar skills

Docker Management next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Docker Management compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Docker Management this skillAlexAI-MCP/hermes-CCC135—~2.2kAutomated safety check: PassMIT
Iron Proxy Gateway for NanoClawnanocoai/nanoclaw31k—~4.6kAutomated safety check: NotesMIT
GreptimeDB Dev Docker ImageGreptimeTeam/greptimedb6.7k—~4kAutomated safety check: NotesApache-2.0
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2606 repos~1.1kAutomated safety check: NotesCustom licence
LangBot Deployment Guidelangbot-app/LangBot18k—~1.2kAutomated safety check: NotesApache-2.0
Build Openshell Mxc WindowsNVIDIA/OpenShell16k—~4.9kAutomated safety check: PassApache-2.0

Similar skills

  • Installs or refreshes Iron Proxy and its Iron Control web console for NanoClaw, with a local Docker setup, database, credentials and a human approval bridge.

    31k GitHub stars~4.6k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • GreptimeDB Dev Docker Image

    GreptimeTeam/greptimedb

    Packages a locally built GreptimeDB debug binary into a development-only Docker image for local-cluster testing, with an optional push to a dev registry.

    6.7k GitHub stars~4k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    260 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • LangBot Deployment Guide

    langbot-app/LangBot

    Deploys and configures a LangBot instance with Docker Compose or Kubernetes, covering config.yaml, the Box sandbox runtime, the plugin runtime and the global API key.

    18k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Official

    Maintain and validate OpenShell's build-only Windows MSVC lane for x64 and ARM64.

    16k GitHub stars~4.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Megatron-LM Base Image Bump

    NVIDIA/Megatron-LM

    Official

    Moves Megatron-LM CI to a newer NVIDIA PyTorch base image, updating both the GitHub and GitLab pins together and handling the CI follow-up.

    18k GitHub stars~2.8k tokensUpdated today
    DevOps & CloudAuto-check passed

More from AlexAI-MCP/hermes-CCC

All 44 skills in this repo
  • GitHub Code Review

    AlexAI-MCP/hermes-CCC

    Review GitHub pull requests with a findings-first engineering mindset.

    135 GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • GitHub PR Workflow

    AlexAI-MCP/hermes-CCC

    Run a disciplined GitHub pull request workflow from branch creation through merge.

    135 GitHub stars~1.4k tokensUpdated 6 mo ago
    Auto-check passed
  • Hermes Memory

    AlexAI-MCP/hermes-CCC

    Manage durable project memory for Claude Code. An agent skill from AlexAI-MCP/hermes-CCC.

    135 GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Hermes Route

    AlexAI-MCP/hermes-CCC

    Route Claude Code work by complexity, risk, and tool needs. An agent skill from AlexAI-MCP/hermes-CCC.

    135 GitHub stars~1.9k tokensUpdated 6 mo ago
    Auto-check passed
  • Hermes Skill

    AlexAI-MCP/hermes-CCC

    Create, improve, inventory, and audit Claude Code skills. An agent skill from AlexAI-MCP/hermes-CCC.

    135 GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Hermes Traj

    AlexAI-MCP/hermes-CCC

    Capture Claude Code interaction trajectories in training-friendly formats.

    135 GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed

Works with

Categories

Questions about Docker Management

What does Docker Management do?

Manage Docker containers, images, volumes, networks, and Compose stacks - lifecycle ops, debugging, cleanup, and Dockerfile optimization. Docker Management is an agent skill from AlexAI-MCP/hermes-CCC. Manage Docker containers, images, volumes, networks, and Compose stacks - lifecycle ops, debugging, cleanup, and Dockerfile optimization.

When should I use Docker Management?

Docker Management fits situations like: tasks that involve Containers.

How do I install Docker Management in Claude Code?

Run `npx skills add AlexAI-MCP/hermes-CCC --skill docker-management -a claude-code`. Or copy the skill folder (skills/docker-management in AlexAI-MCP/hermes-CCC) into .claude/skills/docker-management in your project. Claude Code loads it when a task matches its description.

How do I install Docker Management in Codex?

Run `npx skills add AlexAI-MCP/hermes-CCC --skill docker-management -a codex`. Or copy the skill folder (skills/docker-management in AlexAI-MCP/hermes-CCC) into .agents/skills/docker-management in your project. Codex loads it when a task matches its description.

Can I use Docker Management in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AlexAI-MCP/hermes-CCC --skill docker-management -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docker-management, .gemini/skills/docker-management, .github/skills/docker-management and .opencode/skills/docker-management in your project.

What does Docker Management need to run?

Going by SKILL.md and its folder, Docker Management needs the command-line tools its instructions call (docker and jq). Our summary lists: Python 3; Docker.

Does Docker Management access the network?

SKILL.md contains no URLs. Its commands use docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Docker Management safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Docker Management use?

Docker Management is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Docker Management use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Docker Management?

Skills that share tags, products or a category with Docker Management: Iron Proxy Gateway for NanoClaw (nanocoai/nanoclaw, 31k stars), GreptimeDB Dev Docker Image (GreptimeTeam/greptimedb, 6.7k stars), Senior DevOps Toolkit (maslennikov-ig/claude-code-orchestrator-kit, 260 stars) and LangBot Deployment Guide (langbot-app/LangBot, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Docker Management?

AlexAI-MCP (a GitHub user) maintains it in AlexAI-MCP/hermes-CCC, which has 135 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on April 8, 2026.

Source: AlexAI-MCP/hermes-CCC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.