home / skills / openclaw / skills / docker-diag
This skill analyzes Docker container logs, extracts errors, and reports root causes with actionable fixes.
npx playbooks add skill openclaw/skills --skill docker-diagReview the files below or copy the command above to add this skill to your agents.
---
name: Docker Pro Diagnostic
description: Advanced log analysis for Docker containers using signal extraction.
bins: ["python3", "docker"]
---
# Docker Pro Diagnostic
When a user asks "Why is my container failing?" or "Analyze the logs for [container]", follow these steps:
1. **Run Extraction:** Call `python3 {{skillDir}}/log_processor.py <container_name>`.
2. **Analyze:** Feed the output (which contains errors and context) into your reasoning engine.
3. **Report:** Summarize the root cause. If it looks like a code error, suggest a fix. If it looks like a resource error (OOM), suggest increasing Docker memory limits.
## Example Command
`python3 log_processor.py api_gateway_prod`This skill performs advanced diagnostic analysis of Docker container failures by extracting signals from container logs and summarizing root causes. It automates log extraction, highlights errors and contextual traces, and recommends targeted fixes for code issues and resource constraints. The goal is fast, actionable insights to reduce downtime and speed remediation.
Run the included log extractor against a target container to produce a structured output of errors, stack traces, and contextual lines. Feed that output into the reasoning engine, which correlates patterns (exceptions, OOMs, connection errors) and prioritizes likely root causes. The skill then generates a concise report with probable causes and concrete remediation steps such as code fixes, configuration changes, or resource limit adjustments.
What command runs the extractor?
Run the Python extractor with the container name: python3 log_processor.py <container_name>.
Can it tell the difference between code bugs and resource issues?
Yes. The analysis correlates error types and signals (exceptions vs OOM traces) and recommends fixes like code changes or increasing Docker memory limits.