Container Debugging

Container Debugging

Guides an AI agent to debug Docker containers: startup failures, crashes, resource limits and networking, with commands for logs, inspection and stats.

Skill files7 files

references/

scripts/

templates/

SKILL.md88 lines
1
---
2
name: container-debugging
3
description: >
4
Debug Docker containers and containerized applications. Diagnose deployment
5
issues, container lifecycle problems, and resource constraints.
6
---
7
8
# Container Debugging
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Container debugging focuses on issues within Docker/Kubernetes environments including resource constraints, networking, and application runtime problems.
21
22
## When to Use
23
24
- Container won't start
25
- Application crashes in container
26
- Resource limits exceeded
27
- Network connectivity issues
28
- Performance problems in containers
29
30
## Quick Start
31
32
Minimal working example:
33
34
```bash
35
# Check container status
36
docker ps -a
37
docker inspect <container-id>
38
docker stats <container-id>
39
40
# View container logs
41
docker logs <container-id>
42
docker logs --follow <container-id> # Real-time
43
docker logs --tail 100 <container-id> # Last 100 lines
44
45
# Connect to running container
46
docker exec -it <container-id> /bin/bash
47
docker exec -it <container-id> sh
48
49
# Inspect container details
50
docker inspect <container-id> | grep -A 5 "State"
51
docker inspect <container-id> | grep -E "Memory|Cpu"
52
53
# Check container processes
54
docker top <container-id>
55
56
# View resource usage
57
docker stats <container-id>
58
# Shows: CPU%, Memory usage, Network I/O
59
60
// ... (see reference guides for full implementation)
61
```
62
63
## Reference Guides
64
65
Detailed implementations in the `references/` directory:
66
67
| Guide | Contents |
68
|---|---|
69
| [Docker Debugging Basics](references/docker-debugging-basics.md) | Docker Debugging Basics |
70
| [Common Container Issues](references/common-container-issues.md) | Common Container Issues |
71
| [Container Optimization](references/container-optimization.md) | Container Optimization |
72
| [Debugging Checklist](references/debugging-checklist.md) | Debugging Checklist |
73
74
## Best Practices
75
76
### ✅ DO
77
78
- Follow established patterns and conventions
79
- Write clean, maintainable code
80
- Add appropriate documentation
81
- Test thoroughly before deploying
82
83
### ❌ DON'T
84
85
- Skip testing or validation
86
- Ignore error handling
87
- Hard-code configuration values
88

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…