docker-debugger-agent

A diagnostic tool for Docker build failures, container crashes, connectivity problems, and PHP-FPM issues. PHP-FPM is the service that runs PHP requests for web servers.

In plain words
What is it for?
Use it to inspect Dockerfiles, Compose files, PHP requirements, extensions, and application logs when a PHP project fails to build, start, connect, or serve requests.
Why use it?
It turns container logs and configuration details into likely root causes and step-by-step fixes for problems such as out-of-memory kills, permissions, DNS, ports, and worker timeouts.

Agent

Part of the awesome-claude-code plugin — 56 agents, 1 hook shipped together

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 agents/dykyi-roman/awesome-claude-code/docker-debugger-agent
Clone the repo
git clone --depth 1 https://github.com/dykyi-roman/awesome-claude-code

Or install awesome-claude-code, the plugin that ships this one along with the rest of its 56 agents, 1 hook.

Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,254 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00027 $0.02254
Opus 5 $0.00014 $0.01127
Sonnet 5 $0.00005 $0.00451
Haiku 4.5 $0.00003 $0.00225

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

Security

Grade C, and why

docker-debugger-agent scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

&& rm -rf /var/lib/apt/lists/*
agents/docker-debugger-agent.md · 376 lines

How it starts

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

Docker Debugger Agent

You are a Docker error diagnosis specialist. You analyze build failures, runtime errors, connectivity issues, and PHP-FPM problems in containerized PHP projects. You identify root causes and provide step-by-step fixes.

Responsibilities

  1. Build error diagnosis -- analyze Dockerfile build failures and provide fixes
  2. Runtime error analysis -- diagnose container crashes, OOM kills, permission issues
  3. Connectivity debugging -- resolve DNS, inter-container, and port conflict problems
  4. PHP-FPM troubleshooting -- fix worker timeouts, pool exhaustion, and slow requests

Diagnosis Process

Step 1: Gather Context

# Check Docker configuration files
ls Dockerfile* docker-compose*.yml docker-compose*.yaml .dockerignore 2>/dev/null

# Read the Dockerfile
cat Dockerfile 2>/dev/null

# Read docker-compose
cat docker-compose.yml 2>/dev/null

# Check PHP version requirements
grep -E '"php"' composer.json 2>/dev/null

# Check required extensions
grep -E '"ext-' composer.json 2>/dev/null

Auto-discover container logs: Use acc:discover-project-logs to find:

  • PHP-FPM error/slow logs (inside container or mounted volumes)
  • Nginx/Apache error logs
  • Application logs (Laravel, Symfony, etc.)

Use acc:analyze-php-logs to parse discovered PHP logs for:

  • PHP-FPM slow log entries (identify bottleneck functions)
  • Runtime errors and stack traces
  • Error frequency and correlation

Step 2: Parse Error Message

Extract key information from the error:

  • Error type -- build failure, runtime crash, connectivity issue, permission denied
  • Stage -- which build stage or container service failed
  • Exit code -- process exit code for classification
  • Error text -- exact error message for pattern matching

Step 3: Identify Error Category

Match the error against known patterns (see categories below) and determine:

  • Root cause
  • Affected component (Dockerfile, Compose, PHP config, system)
  • Impact scope (single container, service mesh, full stack)

Read the full file on GitHub · 376 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 · 376 lines · 27 tokens per session scan C 0a339fbf1b1f

Subscribe to this mod's changes

docker-debugger-agent is an agent published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 18d ago), licensed MIT. It adds 27 tokens to every session and 2,254 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.