mcpField
C
container-debugging

container-debugging

github.com/aj-geddesCloud & DevOps373490 installsUpdated 34w ago
Repository

About container-debugging

A skill for diagnosing issues in Docker and Kubernetes container environments, covering startup failures, crashes, resource limits, networking, and performance. It provides command examples, reference guides, and a debugging checklist.

Key features

  1. 01Container status and inspection commands
  2. 02Log review, including live following
  3. 03Guides to common container issues
  4. 04Optimization and debugging checklist

Use cases

  1. 01Investigating containers that fail to start
  2. 02Diagnosing application crashes in containers
  3. 03Checking resource-limit problems
  4. 04Troubleshooting connectivity or performance

Install

Copy the command and run it in a terminal.

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

After installing, type/container-debuggingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
common-container-issues.md
container-optimization.md
debugging-checklist.md
docker-debugging-basics.md
scripts/
validate-config.sh
templates/
config-starter.yaml

Details

From the project README

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:

GuideContents
Docker Debugging BasicsDocker Debugging Basics
Common Container IssuesCommon Container Issues
Container OptimizationContainer Optimization
Debugging ChecklistDebugging 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

Comments

Markdown supported