Container Debug for Openclaw

A comprehensive toolkit for diagnosing and fixing issues within Docker containers and multi-container Compose environments.

gitgoodordietrying
v1.0.0
Feb 4, 2026
1
5.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install container-debug

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install container-debug using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Container Debug?

The Container Debug skill is an essential utility for developers and DevOps engineers who need to maintain healthy containerized environments. It provides a structured approach to inspecting running containers, analyzing logs, and diagnosing complex networking or resource allocation issues within Docker and Docker Compose.

By leveraging this skill within Openclaw Skills, users can bridge the gap between application code and infrastructure. Whether you are dealing with a container that crashes immediately on start or a microservice that cannot reach its database, this skill offers the specific commands and methodologies required to identify the root cause quickly and restore service functionality.

Container Debug Use Cases

  • Containers crashing immediately upon startup or exiting with non-zero codes.
  • Investigating network connectivity issues between microservices in a Compose network.
  • Analyzing high CPU or memory consumption to identify potential resource leaks.
  • Debugging complex multi-stage Docker builds and verifying image layer contents.
  • Monitoring and fixing failing health checks in production-like environments.

How Container Debug Works

  1. Access real-time and historical container logs to identify application-level errors and stderr outputs.
  2. Execute interactive shells within running containers to inspect the internal filesystem, environment variables, and active processes.
  3. Audit network configurations and test service-to-service communication via internal DNS and port reachability checks.
  4. Monitor resource utilization using live stats and cgroup inspection for performance tuning and OOM detection.
  5. Validate Dockerfile logic by building specific stages and inspecting image history for size and layer optimization.

Container Debug Setup

Ensure that the Docker engine is installed and running on your host machine. This skill is compatible with Linux, macOS (Darwin), and Windows (win32) environments.

# Verify Docker installation
docker --version

# Verify Docker Compose installation
docker compose version

Container Debug Data Schema & Taxonomy

The skill interacts with Docker metadata and the host filesystem to organize troubleshooting data as follows:

Data Category Key Metrics/Files Description
Logs stdout, stderr, LogPath Captured output streams and local log driver paths.
Container State ExitCode, OOMKilled, Error Lifecycle metadata used to diagnose crash reasons.
Networking IPAddress, Gateway, ExposedPorts Network topology details for the container's assigned networks.
Resource Stats CPUPerc, MemUsage, NetIO Live performance data retrieved from the Docker engine.
Image Layers History, SizeRw Metadata concerning image construction and filesystem changes.

Container Debug Advanced Features

  • Support for distroless and scratch image debugging using nsenter or sidecar container attachment.
  • Deep inspection of container namespaces to capture network traffic with tcpdump and netshoot.
  • Automated Docker Compose service dependency management using service_healthy conditions for reliable startups.
  • Targeted multi-stage build debugging allowing developers to run shells inside intermediate build artifacts.
  • Comprehensive system cleanup utilities to prune dangling images, volumes, and build caches for Openclaw Skills users.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*