Skip to content

Practical Docker troubleshooting guide covering container exits, build failures, networking, and compose debugging with ready-made commands.

CCM score
42 of 100
skills.sh installs
327
GitHub stars
451
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the debugging flow: identify the problem type (build, runtime, networking, or performance), gather diagnostics, analyze logs, then apply fixes
  • Includes a diagnostic command set for docker ps, docker logs, docker inspect, docker stats, docker top, docker exec, and docker system df
  • Provides Dockerfile patterns for multi-stage builds, non-root users, cache-friendly layer ordering, and HEALTHCHECK configuration
  • Designed for developers diagnosing failing containers, slow builds, or docker-compose services that will not start

Install

$ npx -y skills add onewave-ai/claude-skills --skill docker-debugger -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Docker Debugger

Instructions

When debugging Docker issues:

  1. Identify the problem type: Build, runtime, networking, or performance
  2. Gather information using diagnostic commands
  3. Analyze logs and errors
  4. Apply fixes

Diagnostic Commands

# Check running containers
docker ps -a

# View container logs
docker logs <container_id> --tail 100 -f

# Inspect container
docker inspect <container_id>

# Check resource usage
docker stats

# View container processes
docker top <container_id>

# Execute shell in running container
docker exec -it <container_id> /bin/sh

# Check Docker disk usage
docker system df

# View build history
docker history <image_name>

Common Issues & Solutions

1. Container exits immediately

# Check exit code
docker inspect <container_id> --format='{{.State.ExitCode}}'

# View last logs
docker logs <container_id>

Fixes:

  • Ensure CMD/ENTRYPOINT runs a foreground process
  • Check for missing dependencies
  • Verify environment variables

2. Build fails

Details

Repository
github.com/onewave-ai/claude-skills
Categories
DevOps & Cloud, Debugging
First seen
Jun 3, 2026

Questions

What does the docker-debugger skill do?

The docker-debugger skill helps an agent debug Docker containers, fix Dockerfile issues, optimize images, and troubleshoot docker-compose. It walks through identifying the problem type, gathering information with diagnostic commands, analyzing logs, and applying fixes. It also covers common issues such as containers that exit immediately, failing builds, networking problems, and volume permission errors.

How do I install the docker-debugger skill?

Run npx -y skills add onewave-ai/claude-skills --skill docker-debugger -y in a project to install it. Once installed, the agent can use the skill's diagnostic commands and Dockerfile and docker-compose guidance when you have Docker problems.

Where does docker-debugger rank in its category?

The docker-debugger skill sits in the DevOps & Cloud category on Claude Marketplaces. Other skills listed alongside it in that category include azure-diagnostics, azure-prepare, azure-deploy, azure-validate, and azure-storage. Its focus is local Docker debugging rather than Azure deployment.

What do I need to use docker-debugger?

The skill's commands assume Docker is installed and that you can reach the containers you want to inspect, using docker ps, docker logs, docker inspect, and docker-compose. It is a single SKILL.md file with no dependencies or build step, so no extra accounts or keys are listed.

More from onewave-ai/claude-skills

All 104

Similar to Docker Debugger

More DevOps & Cloud