docker-debugging

Inspect Docker containers, logs, images, and Compose services for debugging.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill docker-debugging-erwinv2k-tkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-debugging
Source: https://github.com/erwinv2k-TKG/AgentesVSC/tree/main/packs/incidentfox/sre-agent/.claude/skills/infrastructure-docker
Command: npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill docker-debugging-erwinv2k-tkg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Investigating container failures, resource spikes, and misconfigured Docker Compose services requires running many CLI commands and parsing raw output, which slows down incident response. ## Core Features & Use Cases - Container Inspection: List containers, fetch logs with tail limits, view resource usage statistics, and inspect configuration with automatic redaction of sensitive environment variables. - Docker Compose Debugging: List Compose services and retrieve per-service logs from any compose file or working directory. - Safe Read-Only Execution: A shared runner blocks destructive subcommands like rm, prune, kill, and exec, so investigations cannot accidentally modify the environment. - Use Case: When an API container keeps restarting, list all containers, pull the last 200 log lines, check CPU and memory stats, and inspect its configuration to find the root cause. ## Quick Start Ask the agent to check why the api container is failing by listing containers and pulling its recent logs.

Frequently Asked Questions about docker-debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a failing Docker container?

Start by listing containers with container_ps.py --all, then pull recent logs with container_logs.py --container NAME --tail 200. Follow up with container_stats.py for resource usage and container_inspect.py for configuration details.

How to check Docker Compose service logs?

Run compose_logs.py with optional --services and --tail flags to fetch logs for specific services. Use compose_ps.py first to confirm which services are running and their current state.

Can this skill delete or stop Docker containers?

No. The shared docker_runner.py blocks destructive subcommands such as rm, prune, kill, stop, and exec. Only read-only operations like ps, logs, inspect, stats, and images are permitted.

Does container inspect expose secrets in environment variables?

No. container_inspect.py redacts environment variables whose keys match sensitive patterns like password, token, secret, or key, and also masks values containing embedded credentials in URLs.

Why does a Docker script return docker not found in PATH?

This error means the Docker CLI is not installed or not reachable in the execution environment. The scripts require direct access to the Docker socket through the standard docker command.