From aj-geddes-useful-ai-prompts-4
Debug Docker containers and containerized applications. Diagnose deployment issues, container lifecycle problems, and resource constraints.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:container-debuggingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
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 |
npx claudepluginhub aj-geddes/useful-ai-promptsDiagnoses Docker container failures, networking issues, permissions errors, port conflicts, data persistence problems, and health checks using docker compose logs, inspect, and targeted fixes.
Docker and Podman container management: Dockerfile optimization, multi-stage builds, Compose v2 orchestration, networking, volumes, security hardening, supply chain integrity, health checks, resource limits, Quadlet systemd integration, and debugging. Invoke whenever task involves any interaction with containers — writing Dockerfiles, configuring Compose, managing Podman Quadlets, reviewing container security, debugging container issues, or setting up image signing and scanning.
Advanced Docker containerization expertise: Dockerfile optimization, multi-stage builds, security hardening, and production deployment. Can redirect to Kubernetes, CI/CD, or cloud subagents.