Debug Docker containers and containerized applications. Diagnose deployment issues, container lifecycle problems, and resource constraints.
Container debugging focuses on issues within Docker/Kubernetes environments including resource constraints, networking, and application runtime problems.
Minimal working example:
# Check container status
docker ps -a
docker inspect <container-id>
docker stats <container-id>
# View container logs
docker logs <container-id>
docker logs --follow <container-id> # Real-time
docker logs --tail 100 <container-id> # Last 100 lines
# Connect to running container
docker exec -it <container-id> /bin/bash
docker exec -it <container-id> sh
# Inspect container details
docker inspect <container-id> | grep -A 5 "State"
docker inspect <container-id> | grep -E "Memory|Cpu"
# Check container processes
docker top <container-id>
# View resource usage
docker stats <container-id>
# Shows: CPU%, Memory usage, Network I/O
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents | |---|---| | Docker Debugging Basics | Docker Debugging Basics | | Common Container Issues | Common Container Issues | | Container Optimization | Container Optimization | | Debugging Checklist | Debugging Checklist |
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/container-debugging · pinned to the source commit
git clone https://github.com/aj-geddes/useful-ai-prompts.git
cd useful-ai-prompts
git checkout 3f5182cfd739fc113f4af5244a1cf342ad7f7911
mkdir -p ".claude/skills/container-debugging"
cp -r "skills/container-debugging" ".claude/skills/container-debugging"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit 3f5182cfd739. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.