ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/gitgoodordietrying/container-debug
Or

What 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

  1. "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."
  2. "My container exited with code 137, can you explain what that means and help me debug the memory usage?"
  3. "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 exec are 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 cp to extract logs or configuration files to your host machine for analysis.
  • Log Drivers: Ensure you check the log driver configuration if docker logs returns unexpected results, as custom drivers may redirect output to external systems.

Metadata

Stars2387
Views0
Updated2026-03-09
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-gitgoodordietrying-container-debug": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#docker#debugging#containers#devops#infrastructure
Safety Score: 3/5

Flags: file-read, code-execution, network-access