container-inspector

Retrieve MikoPBX Docker container IPs, ports, and API URLs.

569|85|Updated Jun 7, 2019
One-click install
npx skills add https://github.com/mikopbx/Core --skill container-inspector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: container-inspector
Source: https://github.com/mikopbx/Core/tree/main/.claude/skills/container-inspector
Command: npx skills add https://github.com/mikopbx/Core --skill container-inspector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Docker, Bash, curl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Debugging, testing, and managing MikoPBX Docker containers (mikopbx_php83/mikopbx_php74) can be complex, involving manual IP/port discovery, restarts, and worker management. This Skill automates these tasks, saving you time and reducing manual errors.

Core Features & Use Cases

  • Connection Parameter Retrieval: Instantly get container IP addresses, HTTP/HTTPS/SIP/SSH ports, and API URLs. Perfect for setting up API or Playwright tests.
  • Container & Worker Management: Gracefully restart entire containers or specific worker processes (e.g., WorkerApiCommands) with robust health checks. Essential for quick reloads after code changes.
  • Troubleshooting & Health Checks: Verify container status, service health (PHP-FPM, Redis, Asterisk, Web), and retrieve default credentials. Quickly diagnose and resolve connectivity issues.
  • Use Case: Before running API tests, use this skill to quickly get the correct API endpoint URL and credentials for your mikopbx_php83 container. After modifying REST API code, restart only the WorkerApiCommands worker for a fast, targeted reload, avoiding a full container restart.

Quick Start

Get all container info

.claude/skills/container-inspector/scripts/get-container-info.sh

Restart container with service wait

.claude/skills/container-inspector/scripts/restart-container.sh mikopbx_php83 --wait-services