docker-debug

docker-debug is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 2 tokens per session (1,305 once invoked), scanned A, original, MIT.

A Docker troubleshooting command for investigating container problems from a symptom, error message, and optional container name or environment. Docker is software that runs applications in isolated containers.

In plain words
What is it for?
Use it to diagnose stopped or restarting containers, connection errors, resource failures, and other container-related problems.
Why use it?
It replaces guesswork with checks of container status, logs, configuration, and resource use. For larger issues, it switches to a plan for investigating several modules together.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the claude-craft plugin — 57 skills, 96 commands, 55 agents, 5 hooks shipped together

Good fit Use it to diagnose stopped or restarting containers, connection errors, resource failures, and other container-related problems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thebeardedbearsas/claude-craft/docker-debug
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.

Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 57 skills, 96 commands, 55 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker-debug

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/docker-debug/github.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/docker-debug)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/docker-debug"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/docker-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docker-debug

Your own site · 80×15
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/docker-debug"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/docker-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,305 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00002 $0.01305
Opus 5.5 $0.00001 $0.00522
Sonnet 5.5 $0.00000 $0.00261
Haiku 4.5 $0.00000 $0.00130

Measured 3d ago against content hash 9e315c936814, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docker-debug 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 3d 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.

Infra/i18n/de/Docker/commands/docker-debug.md · 232 lines

How it starts

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

Docker Diagnose

Du bist ein Docker Debugging-Experte. Du musst Container-bezogene Probleme diagnostizieren und lösen.

Argumente

$ARGUMENTS

Argumente:

  • Symptom oder Fehlermeldung
  • (Optional) Container-Name
  • (Optional) Kontext (dev/prod)

Beispiel: /docker:debug "Container beendet mit Code 137" oder /docker:debug app "Connection refused"

Plan-Modus

Der Plan-Modus wird automatisch aktiviert, wenn der Umfang mehrere Module umfasst oder eine modulübergreifende Untersuchung erfordert.

MISSION

Schritt 1: Informationen sammeln

# Container-Status
docker ps -a

# Aktuelle Logs
docker logs <container> --tail 100 2>&1

# Vollständige Inspektion
docker inspect <container>

# Ressourcen
docker stats --no-stream

Schritt 2: Problem identifizieren

══════════════════════════════════════════════════════════════
🔍 DOCKER DIAGNOSE
══════════════════════════════════════════════════════════════

Container: {name}
Image: {image}
Status: {running|exited|restarting}
Laufzeit: {dauer}

──────────────────────────────────────────────────────────────
🚨 GEMELDETES SYMPTOM
──────────────────────────────────────────────────────────────

{Problembeschreibung}

──────────────────────────────────────────────────────────────
📋 ANALYSE
──────────────────────────────────────────────────────────────

Schritt 3: Entscheidungsbäume

Container startet nicht
Exit Code Bedeutung Aktionen
0 Normal beendet CMD/ENTRYPOINT prüfen
1 Anwendungsfehler Logs analysieren
126 Berechtigung verweigert Berechtigungen prüfen
127 Befehl nicht gefunden PATH und Binary prüfen
137 SIGKILL (OOM oder Stop) Speicher prüfen
139 SIGSEGV Code debuggen
# Exit Code prüfen
docker inspect --format='{{.State.ExitCode}}' <container>

# OOM prüfen
docker inspect --format='{{.State.OOMKilled}}' <container>

# Detaillierte Logs
docker logs <container> 2>&1
Netzwerkprobleme

Read the full file on GitHub · 232 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. 3d ago First seen · 232 lines · 2 tokens per session scan A 9e315c936814

Subscribe to this mod's changes

docker-debug is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (107 stars, last pushed yesterday), licensed MIT. It adds 2 tokens to every session and 1,305 once invoked, about $0.0000 per session on Opus 5.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-10-30.