Docker logo

Docker

Community
greedychipmunk
docker

Build, run, debug, and manage Docker containers, images, compose files, networking, volumes, registries, Buildx/Bake, Scout/SBOM, Swarm, and Docker AI tooling. Use when the user mentions docker, containers, containerizing, Dockerfile, compose, image registry, volumes, or any docker subcommand.

Overview

Publishergreedychipmunk
Repositoryagent-skills
Skill namedocker
Stars
24
Forks
1
Bundled files
26
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 26 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by greedychipmunk on GitHub. Read the source before you install it.

Installation

Install the Docker AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/greedychipmunk/agent-skills/tree/main/docker
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/greedychipmunk/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/docker .claude/skills/docker
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Docker in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Docker on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Docker is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Docker

Use this skill to keep Docker work deterministic, safe, and fast across Linux, macOS, and Windows Docker Desktop hosts.

Quick Start

  1. Run scripts/probe-docker.ps1 (Windows) or docker info / docker version (Linux/macOS) first for environment truth.
  2. Choose the smallest workflow that solves the request:
    • Core container/build/compose workflow in this file covers ~80% of tasks.
    • Load a reference file only when you need depth on a specific domain.
    • Reuse assets/templates/ starter packs before writing boilerplate from scratch.
  3. Default to read-only diagnostics before proposing mutating commands.
  4. Confirm before destructive commands (rm, prune, down -v, sandbox reset, builder/cache deletion).
  5. Prefer installed CLI behavior when docs and runtime diverge; note the caveat with concrete versions.

Intent Router (Progressive Disclosure)

Load only the reference file needed for the active request.

  • resources/install-and-setup.md — Installing Docker Desktop (macOS/Windows) or Docker Engine (Linux), and post-install configuration.
  • resources/core.md — Windows Desktop-first diagnostics, context management, Desktop status.
  • resources/containers.md — run/exec/logs/inspect/debug/stats and crash triage.
  • resources/images.md — Dockerfile authoring, multi-stage patterns, Buildx/Bake.
  • resources/compose.md — Compose authoring and service orchestration.
  • resources/networking.md — bridge/overlay/macvlan, DNS, port publishing.
  • resources/volumes.md — named volumes, bind mounts, backup/restore patterns.
  • resources/registry.md — login/tag/push/pull and registry hygiene.
  • resources/swarm.md — swarm init, services, stacks, safe operations.
  • resources/troubleshooting.md — systematic debugging and error classification.
  • resources/security.md — Scout, SBOM, DHI, pass secrets, supply chain checks.
  • resources/ai-and-agents.md — Docker AI, agent/cagent, MCP toolkit, model runner, sandbox.
  • resources/cloud-and-remote.md — Offload, Build Cloud, remote builders and contexts.

Quick Command Reference

These cover ~80% of daily Docker use. Use them directly without loading a reference file.

bash
# Container lifecycle
docker run -d --name myapp -p 8080:80 nginx          # Run detached with port mapping
docker run -it --rm ubuntu bash                       # Interactive, auto-remove on exit
docker ps                                             # List running containers
docker ps -a                                          # All containers (incl. stopped)
docker stop myapp && docker rm myapp                  # Stop and remove
docker logs myapp -f                                  # Follow logs
docker logs myapp --tail=100                          # Last 100 lines
docker exec -it myapp bash                            # Shell into running container
docker inspect myapp                                  # Full metadata (JSON)
docker stats                                          # Live resource usage

# Images
docker build -t myapp:latest .                        # Build from Dockerfile in cwd
docker pull nginx:alpine                              # Pull image
docker images                                         # List local images
docker rmi myapp:latest                               # Remove image
docker tag myapp:latest myregistry/myapp:v1.2         # Tag for push

# Compose (v2 — no hyphen)
docker compose config                                 # Validate and view merged config
docker compose up -d                                  # Start all services detached
docker compose down                                   # Stop and remove containers+networks
docker compose logs -f api                            # Follow logs for one service
docker compose exec api sh                            # Shell into service container
docker compose ps                                     # Service status
docker compose build --no-cache                       # Rebuild all images

# Buildx / multi-platform
docker buildx ls
docker buildx build --platform linux/amd64,linux/arm64 -t myorg/myapp:v1 --push .

# System
docker system df                                      # Disk usage breakdown
docker system prune                                   # Remove unused objects (see safety)

Safety Matrix

Command or PatternRequired Guardrail
docker system prune / prune -aRun docker system df first; summarize what will be removed, then confirm.
docker volume rmWarn that volume data is permanently deleted and require explicit confirmation.
docker network rmCheck for attached containers first and list impacted services before remove.
docker rm -fConfirm exact container names; avoid bulk force-remove without listing targets.
docker rmi -fCheck container/image dependents first and confirm impact.
docker swarm leave --forceExplain manager impact and require explicit confirmation.
docker compose down -vCall out database/state loss risk and require explicit confirmation.
docker sandbox resetTreat as destructive reset; require explicit confirmation.
docker push to registryConfirm the full destination tag before pushing.
--privileged flagExplain what it grants and why it's risky before using.

Writing Dockerfiles

When asked to write a Dockerfile, always apply these best practices by default:

  • Layer order — put things that change least at the top (base image, system deps), most at the bottom (app code). Maximizes cache reuse.
  • Multi-stage builds — compile/install in a build stage; copy only artifacts to a minimal runtime image.
  • Non-root user — create and switch to a non-root user before CMD.
  • Minimal base image — prefer alpine, distroless, or slim. Use full images only when system packages are needed.
  • Combine RUN commands — chain related commands with &&; clean up package caches in the same layer.
  • Always create .dockerignore alongside Dockerfile.

For complete Dockerfile templates (Node.js, Python, Go) and .dockerignore patterns, see resources/images.md.

Docker Compose Authoring

Key patterns for compose files:

  • Use condition: service_healthy on depends_on when the dependency has a healthcheck.
  • Always define named volumes rather than bare bind mounts for data you care about.
  • Scope services to internal-only networks when they don't need external access.
  • Use restart: unless-stopped for production; omit for dev tooling containers.
  • Set an explicit name: at the top to avoid directory-name collisions.

For complete compose file templates with health checks, see resources/compose.md.

Diagnostic Workflow

When a container is crashing or misbehaving:

bash
docker ps -a                              # Find container and exit code
docker logs <name> --tail=100             # Last 100 lines (stderr included with 2>&1)
docker inspect <name>                     # Full JSON — check State, Config, Mounts
docker stats --no-stream                  # Snapshot of memory/CPU (check for OOM)
docker exec -it <name> sh                 # Shell in (if still running)
docker debug <name>                       # Debug sidecar, works on stopped containers
docker compose ps && docker compose logs --tail=50   # Compose: all services at once

Exit codes: 0 = clean exit, 1 = app error, 137 = OOM killed, 139 = segfault, 143 = SIGTERM, 125/126/127 = Docker/exec errors.

Core Workflow (Windows Desktop)

  1. Establish baseline — Run scripts/probe-docker.ps1 -Json for structured diagnostics (CLI version, context, plugin availability, daemon reachability).
  2. Diagnose before changing state — Run scripts/doctor-docker.ps1 for actionable checks. Use -Quick for fast triage; -IncludeScout / -IncludeOffload only when in scope.
  3. Execute scoped operations — container lifecycle, build pipeline, compose orchestration, context/Desktop checks.
  4. Report findings by root cause — sandbox/host permission boundary, daemon/service state, config mismatch.

Resource Index

  • scripts/probe-docker.ps1 — probe-docker.ps1 [-Json] [-IncludeExperimental] — read-only host/runtime probe.
  • scripts/doctor-docker.ps1 — doctor-docker.ps1 [-Quick] [-IncludeOffload] [-IncludeScout] — diagnostics and recommendations.
  • assets/templates/ — reusable starter packs for minimal service, compose stack, and multi-arch Buildx.
  • resources/*.md — deep domain coverage (see Intent Router above).

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Docker AI skill do?

Build, run, debug, and manage Docker containers, images, compose files, networking, volumes, registries, Buildx/Bake, Scout/SBOM, Swarm, and Docker AI tooling. Use when the user mentions docker, containers, containerizing, Dockerfile, compose, image registry, volumes, or any docker subcommand.

Why use Docker on TypingMind?

Because you install it once and use it with any model. Docker is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Docker in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/greedychipmunk/agent-skills/tree/main/docker. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Docker?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Docker?

As many as you like. As long as a model supports skills, you can use Docker with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Docker AI skill free?

Yes. It is published on GitHub by greedychipmunk under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇