container-debugging

aj-geddes/useful-ai-prompts · updated Apr 8, 2026

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill container-debugging
0 commentsdiscussion
summary

Container debugging focuses on issues within Docker/Kubernetes environments including resource constraints, networking, and application runtime problems.

skill.md

Container Debugging

Table of Contents

Overview

Container debugging focuses on issues within Docker/Kubernetes environments including resource constraints, networking, and application runtime problems.

When to Use

  • Container won't start
  • Application crashes in container
  • Resource limits exceeded
  • Network connectivity issues
  • Performance problems in containers

Quick Start

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)

Reference Guides

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

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.645 reviews
  • Nia Chen· Dec 24, 2024

    container-debugging fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Soo Menon· Dec 24, 2024

    container-debugging reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Shikha Mishra· Dec 12, 2024

    I recommend container-debugging for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Camila Tandon· Dec 8, 2024

    container-debugging has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Ira Rahman· Nov 27, 2024

    Useful defaults in container-debugging — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Diego Khanna· Nov 15, 2024

    We added container-debugging from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Ira Gonzalez· Nov 7, 2024

    I recommend container-debugging for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Nia Ndlovu· Oct 26, 2024

    container-debugging reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Alexander Garcia· Oct 18, 2024

    container-debugging is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Carlos Nasser· Oct 6, 2024

    Solid pick for teams standardizing on skills: container-debugging is focused, and the summary matches what you get after install.

showing 1-10 of 45

1 / 5