Back to list
levnikolaevich

ln-783-container-launcher

by levnikolaevich

Greate Claude Code skills collection. Production-ready skills that cover the full delivery workflow — from research and discovery to epic planning, task breakdown, implementation, testing, code review, and quality gates.

52🍴 12📅 Jan 23, 2026

SKILL.md


name: ln-783-container-launcher description: Builds and launches Docker containers with health verification using best practices

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

ScenarioUse This Skill
Called by ln-780 orchestratorYes
Standalone container launchYes
Development environment setupYes
Production deploymentNo, use proper CI/CD

Workflow

Step 1: Pre-flight Checks

Verify Docker environment readiness.

CheckFailure Action
Docker daemon runningReport error with installation instructions
Docker Compose availableReport error, suggest installation
Compose file existsReport error, list expected locations
Required ports freeReport conflict, suggest alternatives
Sufficient disk spaceWarn if low space (<2GB free)

Step 2: Parse Compose Configuration

Extract service information from docker-compose.yml.

InformationPurpose
Service namesTrack which containers to monitor
Exposed portsKnow which ports to check
Health check definitionsUse native health checks if defined
Dependencies (depends_on)Understand startup order
Volume mountsVerify paths exist

Step 3: Build Images

Build all images defined in compose file.

AspectStrategy
Build contextUse paths from compose file
Build argsPass through from compose configuration
CacheUse Docker layer cache for speed
FailureReport build errors with full log

Step 4: Launch Containers

Start containers with proper orchestration.

AspectStrategy
Startup orderRespect depends_on and healthcheck conditions
Detached modeRun in background
NetworkUse compose-defined networks
VolumesMount all defined volumes

Step 5: Health Verification

Verify all containers are healthy using appropriate strategy.

Strategy Selection:

ConditionStrategy
Service has healthcheck: in composeUse native Docker health status
Service has depends_on: condition: service_healthyWait for Docker health status
No healthcheck definedUse external HTTP probe with retry

Retry Configuration:

ParameterValueRationale
Max attempts10Allow slow-starting services
Initial delay5sGive containers time to start
BackoffExponential (5, 10, 20, 40s)Avoid overwhelming services
Max total wait120sReasonable upper limit

Health Check Methods:

MethodWhen to Use
Docker health statusWhen container has healthcheck defined
HTTP GET to exposed portFor web services without healthcheck
Container execFor services without exposed ports
TCP port checkFor databases and message queues

Step 6: Report Results

Return structured results to orchestrator.

Result Structure:

FieldDescription
containersArray of container status objects
healthChecksArray of health check results
accessUrlsMap of service name to access URL
overallStatushealthy / unhealthy / partial
startupDurationTime from launch to all healthy

Container Status Object:

FieldDescription
nameContainer name
serviceService name from compose
statusrunning / exited / restarting
healthhealthy / unhealthy / starting / none
portExposed port (if any)
startedAtContainer start timestamp

Health Check Result:

FieldDescription
urlChecked URL or endpoint
statusHTTP status code or check result
responseTimeTime to respond in ms
healthyBoolean health status

Error Handling

Error TypeAction
Docker daemon not runningReport with start instructions
Port already in useReport conflict, suggest docker compose down first
Image build failedReport with build logs
Container exitedReport with container logs
Health check timeoutReport with last known status and logs
Network unreachableCheck Docker network configuration

Options

OptionDefaultDescription
keepRunningtrueLeave containers running after verification
stopAfterfalseStop containers after successful verification
healthTimeout120Max seconds to wait for healthy status
showLogstrueShow container logs on failure
buildFirsttrueBuild images before starting
pullLatestfalsePull base images before build

Cleanup Instructions

Provide user with cleanup commands in report.

ActionDescription
Stop containersStop running containers, preserve data
Remove containers and networksClean up containers but keep volumes
Remove everythingFull 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

Score

Total Score

80/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon