container-debug

Debug Docker containers and Compose services via logs, commands, and diagnostics.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/zangxin75/openclaw-skills --skill container-debug-zangxin75
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: container-debug
Source: https://github.com/zangxin75/openclaw-skills/tree/main/container-debug
Command: npx skills add https://github.com/zangxin75/openclaw-skills --skill container-debug-zangxin75

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps diagnose and resolve issues within running Docker containers and Docker Compose services, ensuring applications run smoothly.

Core Features & Use Cases

  • Log Analysis: View, filter, and stream container logs to identify errors.
  • Interactive Shell Access: Execute commands inside running or stopped containers for direct inspection.
  • Networking Diagnostics: Test connectivity, inspect network configurations, and troubleshoot communication issues between services.
  • Resource Monitoring: Analyze CPU, memory, and disk usage to pinpoint performance bottlenecks.
  • Dockerfile Debugging: Inspect build stages and identify issues in multi-stage builds.
  • Health Check Troubleshooting: Diagnose failing health checks for services.
  • Compose Service Debugging: Resolve startup order, dependency, and configuration problems in Docker Compose setups.

Quick Start

Use the container-debug skill to view the last 50 lines of logs for the 'my-container' container.

Frequently Asked Questions about container-debug

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

FAQPage Schema
How do I debug a Docker container that keeps crashing?

To debug a crashing Docker container, you can analyze container logs, execute commands inside the container for direct inspection, and diagnose health check failures to identify the root cause of the application crash.

How do I troubleshoot networking issues between Docker Compose services?

Troubleshoot Docker Compose networking issues by testing connectivity, inspecting network configurations, and resolving startup order or dependency problems to fix communication failures between services.

How can I monitor Docker container resource usage to find performance bottlenecks?

Monitor Docker container resource usage by analyzing CPU, memory, and disk utilization metrics to pinpoint performance bottlenecks within your containerized environment.

Do I need Docker and Docker Compose installed to debug containerized applications?

Yes, you need both Docker and Docker Compose installed and configured on your system to use this Skill for troubleshooting containerized applications and Compose services.

What is the best way to view and filter Docker logs for errors?

The best way to view and filter Docker logs for errors is to use log analysis tools to view, filter, and stream container logs, allowing you to quickly identify application errors.

Can I inspect Dockerfile build stages to debug multi-stage build issues?

Yes, you can inspect Dockerfile build stages to identify issues in multi-stage builds, alongside troubleshooting failing health checks and diagnosing Compose service configuration problems.