container-debug
Debug running Docker containers and Compose services. Use when inspecting container logs, exec-ing into running containers, diagnosing networking issues, checking resource usage, debugging multi-stage builds, troubleshooting health checks, or fixing Compose service dependencies.
Why use this skill?
Efficiently debug Docker containers and Compose services. Inspect logs, execute commands, and resolve crash patterns with the container-debug skill for OpenClaw.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/gitgoodordietrying/container-debugWhat This Skill Does
The container-debug skill provides OpenClaw agents with a powerful toolkit for diagnosing, troubleshooting, and inspecting Docker containers and Docker Compose services. It bridges the gap between the agent and the runtime environment by facilitating log analysis, interactive terminal access, configuration verification, and post-mortem crash investigation. This skill empowers the agent to identify why containers exit, explore internal file systems for configuration errors, verify network connectivity between service stacks, and inspect resource utilization patterns directly from the command line.
Installation
You can integrate this skill into your environment by running the following command:
clawhub install openclaw/skills/skills/gitgoodordietrying/container-debug
Use Cases
- Production Troubleshooting: Quickly identify why a microservice is crashing by checking specific exit codes (like OOM Kill 137 or Segfault 139) and tailing real-time logs.
- Configuration Audits: Inspect the environment variables, directory structures, and file permissions of a running process without needing to rebuild the image.
- Dependency Management: Verify if services within a Compose stack can ping each other, ensuring networking definitions are correctly configured.
- Deployment Debugging: Analyze multi-stage builds or extract logs from containers that failed to start, ensuring that your CI/CD pipelines provide actionable feedback.
- Resource Optimization: Monitor for high memory usage or identify processes that are leaking resources within constrained container environments.
Example Prompts
- "Check the logs for the 'api' service in my compose stack for the last 30 minutes and tell me if there are any database connection errors."
- "My container exited with code 137, can you explain what that means and help me debug the memory usage?"
- "Open an interactive bash shell in the 'web' container and verify if the /etc/nginx/nginx.conf file exists and has the correct permissions."
Tips & Limitations
- Security: Always prefer using non-root users when exec-ing into containers unless absolutely necessary for troubleshooting.
- Persistence: Be aware that changes made via
docker execare not permanent; for configuration changes, modify the Dockerfile or mount points. - Distroless Images: If you are using distroless or scratch images that do not contain a shell, rely on
docker cpto extract logs or configuration files to your host machine for analysis. - Log Drivers: Ensure you check the log driver configuration if
docker logsreturns unexpected results, as custom drivers may redirect output to external systems.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-gitgoodordietrying-container-debug": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, code-execution, network-access
Related Skills
shell-scripting
Write robust, portable shell scripts. Use when parsing arguments, handling errors properly, writing POSIX-compatible scripts, managing temp files, running commands in parallel, managing background processes, or adding --help to scripts.
api-dev
Scaffold, test, document, and debug REST and GraphQL APIs. Use when the user needs to create API endpoints, write integration tests, generate OpenAPI specs, test with curl, mock APIs, or troubleshoot HTTP issues.
skill-writer
Write high-quality agent skills (SKILL.md files) for ClawdHub/MoltHub. Use when creating a new skill from scratch, structuring skill content, writing effective frontmatter and descriptions, choosing section patterns, or following best practices for agent-consumable technical documentation.
log-analyzer
Parse, search, and analyze application logs across formats. Use when debugging from log files, setting up structured logging, analyzing error patterns, correlating events across services, parsing stack traces, or monitoring log output in real time.
data-validation
Validate data with schemas across languages and formats. Use when defining JSON Schema, using Zod (TypeScript) or Pydantic (Python), validating API request/response shapes, checking CSV/JSON data integrity, or setting up data contracts between services.