docker-debug

docker-debug is a skill for Claude Code, Codex from batu-sonmez/infraclaude. It costs 0 tokens per session (426 once invoked), scanned A, original, MIT.

A step-by-step guide for diagnosing Docker container problems with InfraClaude tools. Docker runs applications in isolated environments called containers.

In plain words
What is it for?
It is for investigating containers that will not start, use too many resources, crash, or cannot communicate with other containers.
Why use it?
It replaces guesswork with checks for startup errors, logs, resource limits, ports, networks, and container state.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for investigating containers that will not start, use too many resources, crash, or cannot communicate with other containers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/batu-sonmez/infraclaude/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.

Any agent
npx skills add batu-sonmez/infraclaude --skill docker-debug
Clone the repo
git clone --depth 1 https://github.com/batu-sonmez/infraclaude

Made for: Claude Code, Codex.

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/skills/batu-sonmez/infraclaude/docker-debug/github.svg)](https://agentmods.dev/skills/batu-sonmez/infraclaude/docker-debug)
Your own site
<a href="https://agentmods.dev/skills/batu-sonmez/infraclaude/docker-debug"><img src="https://agentmods.dev/badge/skills/batu-sonmez/infraclaude/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/skills/batu-sonmez/infraclaude/docker-debug"><img src="https://agentmods.dev/badge/skills/batu-sonmez/infraclaude/docker-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 426 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.00000 $0.00426
Opus 5 $0.00000 $0.00213
Sonnet 5 $0.00000 $0.00085
Haiku 4.5 $0.00000 $0.00043

Measured 8d ago against content hash cba5cf1ca469, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 8d 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-debug/SKILL.md · 50 lines

What it actually says

Docker Container Debugging Guide

Systematic approach to debugging Docker container issues using InfraClaude tools.

Container Won't Start

  1. Use docker_list_containers with all: true to find stopped/exited containers
  2. Use docker_inspect_container to check:
    • Exit code (non-zero = error)
    • State and error message
    • Port bindings and volume mounts
  3. Use docker_container_logs to see startup errors
  4. Common issues:
    • Exit code 1: Application error — check logs
    • Exit code 137: OOMKilled — increase memory limit
    • Exit code 139: Segfault — check binary compatibility
    • Port already in use: Another container or process using the port

High Resource Usage

  1. Use docker_container_stats to see real-time CPU/memory/network
  2. Look for:
    • CPU over 100% — may need CPU limits
    • Memory growing continuously — possible memory leak
    • High network I/O — check for chatty services
  3. Compare with docker_inspect_container for configured limits

Networking Issues

  1. Use docker_list_networks to see available networks
  2. Use docker_inspect_network to check which containers are connected
  3. Common issues:
    • Containers on different networks can't communicate
    • DNS resolution failing — check container DNS settings
    • Port mapping incorrect — verify -p flags

Docker Compose Issues

  1. Use docker_compose_ps to check service status
  2. Use docker_compose_logs for specific service logs
  3. Check dependency ordering (depends_on)
  4. Verify environment variables and volume mounts

Image Issues

  1. Use docker_list_images to check available images
  2. Check image size — large images slow down deployment
  3. Verify image tags — :latest can cause inconsistencies
  4. Use security_trivy_scan to check for vulnerabilities
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. 8d ago First seen · 50 lines · 0 tokens per session scan A cba5cf1ca469

Subscribe to this mod's changes

docker-debug is a skill published in the GitHub repository batu-sonmez/infraclaude (0 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 426 tokens. 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

hermes-s6-container-supervision

Modify or debug s6 services in the Hermes Docker image.

NousResearch/hermes-agent · 20 tokens

smoke-test

Health smoke tests + auto-fix for gbrain installs (and OpenClaw services when present). Run after machine/container restarts or whenever something seems broken. Tests critical services, auto-fixes bounded local issues, and reports worker topology without starting daemons. Extensible via user-defined test scripts in…

garrytan/gbrain · 79 tokens

competition-container-runtime

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for live container runtime analysis, mounted secrets, sidecars, namespaces, init containers, entrypoint drift, and route-to-container resolution. Use when the user asks why a live container differs from manifests, where a mounted secret is…

zhaoxuya520/reverse-skill · 109 tokens

meta-home-it-rescue

Use this meta-skill instead of answering directly when the user needs help with home, small-team, laptop, browser, printer, Docker, Git, network, UI, or deployment troubleshooting that benefits from multi-skill orchestration across symptom intake, environment capture, web lookup, and repair planning.

opensquilla/opensquilla · 65 tokens

debugging-local-replay

Debugs why session recordings aren't appearing in the local dev environment. Use when a developer reports that local replay ingestion isn't working, recordings aren't showing up despite /s calls, or the replay pipeline seems broken after hogli start. Covers the full local pipeline: SDK capture, Caddy proxy…

PostHog/posthog-foss · 108 tokens

docker-debug

Debug Kurtosis running on local Docker. Inspect engine, API container, and service logs. Diagnose container crashes, port conflicts, and networking issues. Use when kurtosis commands fail or services aren't reachable on Docker.

kurtosis-tech/kurtosis · 45 tokens