🎯

ln-783-container-launcher

🎯Skill

from levnikolaevich/claude-code-skills

VibeIndex|
What it does

Launches Docker containers with comprehensive health verification, ensuring proper startup order and configuration validation.

πŸ“¦

Part of

levnikolaevich/claude-code-skills(85 items)

ln-783-container-launcher

Installation

Claude CodeAdd plugin in Claude Code
/plugin add levnikolaevich/claude-code-skills
git cloneClone repository
git clone https://github.com/levnikolaevich/claude-code-skills.git ~/.claude/skills
πŸ“– Extracted from docs: levnikolaevich/claude-code-skills
11Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Builds and launches Docker containers with health verification using best practices

Overview

# ln-783-container-launcher

Type: L3 Worker

Category: 7XX Project Bootstrap

Parent: ln-780-bootstrap-verifier

---

Purpose

Builds Docker images, launches containers, and performs comprehensive health verification using Docker native health checks and retry strategies.

Scope:

  • Detect and validate docker-compose.yml configuration
  • Build Docker images
  • Launch containers with proper startup order
  • Verify container health using native health checks
  • Provide access URLs and cleanup instructions

Out of Scope:

  • Building application code (handled by ln-781)
  • Running tests (handled by ln-782)
  • Container orchestration beyond single host (Kubernetes, Swarm)

---

When to Use

| Scenario | Use This Skill |

|----------|---------------|

| Called by ln-780 orchestrator | Yes |

| Standalone container launch | Yes |

| Development environment setup | Yes |

| Production deployment | No, use proper CI/CD |

---

Workflow

Step 1: Pre-flight Checks

Verify Docker environment readiness.

| Check | Failure Action |

|-------|---------------|

| Docker daemon running | Report error with installation instructions |

| Docker Compose available | Report error, suggest installation |

| Compose file exists | Report error, list expected locations |

| Required ports free | Report conflict, suggest alternatives |

| Sufficient disk space | Warn if low space (<2GB free) |

Step 2: Parse Compose Configuration

Extract service information from docker-compose.yml.

| Information | Purpose |

|-------------|---------|

| Service names | Track which containers to monitor |

| Exposed ports | Know which ports to check |

| Health check definitions | Use native health checks if defined |

| Dependencies (depends_on) | Understand startup order |

| Volume mounts | Verify paths exist |

Step 3: Build Images

Build all images defined in compose file.

| Aspect | Strategy |

|--------|----------|

| Build context | Use paths from compose file |

| Build args | Pass through from compose configuration |

| Cache | Use Docker layer cache for speed |

| Failure | Report build errors with full log |

Step 4: Launch Containers

Start containers with proper orchestration.

| Aspect | Strategy |

|--------|----------|

| Startup order | Respect depends_on and healthcheck conditions |

| Detached mode | Run in background |

| Network | Use compose-defined networks |

| Volumes | Mount all defined volumes |

Step 5: Health Verification

Verify all containers are healthy using appropriate strategy.

Strategy Selection:

| Condition | Strategy |

|-----------|----------|

| Service has healthcheck: in compose | Use native Docker health status |

| Service has depends_on: condition: service_healthy | Wait for Docker health status |

| No healthcheck defined | Use external HTTP probe with retry |

Retry Configuration:

| Parameter | Value | Rationale |

|-----------|-------|-----------|

| Max attempts | 10 | Allow slow-starting services |

| Initial delay | 5s | Give containers time to start |

| Backoff | Exponential (5, 10, 20, 40s) | Avoid overwhelming services |

| Max total wait | 120s | Reasonable upper limit |

Health Check Methods:

| Method | When to Use |

|--------|------------|

| Docker health status | When container has healthcheck defined |

| HTTP GET to exposed port | For web services without healthcheck |

| Container exec | For services without exposed ports |

| TCP port check | For databases and message queues |

Step 6: Report Results

Return structured results to orchestrator.

Result Structure:

| Field | Description |

|-------|-------------|

| containers | Array of container status objects |

| healthChecks | Array of health check results |

| accessUrls | Map of service name to access URL |

| overallStatus | healthy / unhealthy / partial |

| startupDuration | Time from launch to all healthy |

Container Status Object:

| Field | Description |

|-------|-------------|

| name | Container name |

| service | Service name from compose |

| status | running / exited / restarting |

| health | healthy / unhealthy / starting / none |

| port | Exposed port (if any) |

| startedAt | Container start timestamp |

Health Check Result:

| Field | Description |

|-------|-------------|

| url | Checked URL or endpoint |

| status | HTTP status code or check result |

| responseTime | Time to respond in ms |

| healthy | Boolean health status |

---

Error Handling

| Error Type | Action |

|------------|--------|

| Docker daemon not running | Report with start instructions |

| Port already in use | Report conflict, suggest docker compose down first |

| Image build failed | Report with build logs |

| Container exited | Report with container logs |

| Health check timeout | Report with last known status and logs |

| Network unreachable | Check Docker network configuration |

---

Options

| Option | Default | Description |

|--------|---------|-------------|

| keepRunning | true | Leave containers running after verification |

| stopAfter | false | Stop containers after successful verification |

| healthTimeout | 120 | Max seconds to wait for healthy status |

| showLogs | true | Show container logs on failure |

| buildFirst | true | Build images before starting |

| pullLatest | false | Pull base images before build |

---

Cleanup Instructions

Provide user with cleanup commands in report.

| Action | Description |

|--------|-------------|

| Stop containers | Stop running containers, preserve data |

| Remove containers and networks | Clean up containers but keep volumes |

| Remove everything | Full cleanup including volumes and images |

---

Critical Rules

  1. Use native health checks when available - more reliable than external probes
  2. Implement retry with backoff - services need time to initialize
  3. Always collect logs on failure - essential for debugging
  4. Parse compose file for ports - do not hardcode port numbers
  5. Respect depends_on order - critical for database-dependent services

---

Definition of Done

  • [ ] Docker environment verified
  • [ ] All images built successfully
  • [ ] All containers running
  • [ ] All health checks passing
  • [ ] Access URLs provided
  • [ ] Results returned to orchestrator

---

Version: 2.0.0

Last Updated: 2026-01-10

More from this repository10

πŸͺ
levnikolaevich-claude-code-skillsπŸͺMarketplace

Official marketplace for Agile Linear Workflow plugin - complete end-to-end automation for software development teams using Linear. Includes 7XX Project Bootstrap series for technology-agnostic project migration.

🎯
ln-140-test-docs-creator🎯Skill

Generates comprehensive test documentation with testing strategy and test organization structure for software projects.

🎯
ln-110-project-docs-coordinator🎯Skill

Coordinates project documentation by gathering context once, detecting project type, and delegating document creation to 5 specialized workers.

🎯
ln-114-frontend-docs-creator🎯Skill

Generates design guidelines documentation for frontend projects with WCAG 2.1 compliance when a frontend framework is detected.

🎯
ln-113-backend-docs-creator🎯Skill

Generates backend documentation files (API spec and database schema) automatically when backend or database technologies are detected in a project.

🎯
ln-610-code-comments-auditor🎯Skill

Audits code comments and docstrings across 6 quality categories, generating a comprehensive compliance score and actionable recommendations for improvement.

🎯
ln-115-devops-docs-creator🎯Skill

Generates a comprehensive runbook.md for DevOps setup, dynamically tailored to project's Docker configuration and deployment specifics.

🎯
ln-772-error-handler-setup🎯Skill

Configures global exception handling middleware for .NET and Python backend applications with standardized error responses.

🎯
ln-120-reference-docs-creator🎯Skill

Generates reference documentation structure and smart documents for project tech stack, creating only justified architectural decision records and guides.

🎯
ln-625-dependencies-auditor🎯Skill

Audits dependencies for outdated packages, unused imports, unnecessary libraries, and custom implementations, providing actionable recommendations.