agentsclimarketplace

Debug docker service

Skill choutos/agent-skills-spec/examples/debug-docker-service

Diagnose and fix Docker container issues. Use when a service is not responding, container is in restart loop, or health check fails. Triggers on: docker, container, service down, not responding, restart loop, health check.From its SKILL.md

Install
npx -y skills add choutos/agent-skills-spec --skill debug-docker-service

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 8 commands, including `docker compose ps` and 7 more.

SKILL.md

1.5 KB, 342 tokens by cl100k_base, as published. Nobody here has run it

Debug Docker Service

Diagnosis Flow

  1. Check container status:

    docker compose ps
    
  2. If container is restarting:

    docker compose logs --tail=50 <service>
    

    Common causes: missing env vars, port conflicts, OOM kills.

  3. If container is stopped:

    docker compose up -d <service>
    docker compose logs -f <service>  # watch startup
    
  4. If container is running but service unresponsive:

    docker compose exec <service> sh  # get a shell
    # Check if process is running inside
    # Check if port is listening
    netstat -tlnp || ss -tlnp
    
  5. Resource issues:

    docker stats --no-stream
    df -h  # disk full?
    

Common Fixes

SymptomFix
OOM killedIncrease memory limit in compose file
Port conflictCheck docker compose ps for port bindings, stop conflicting service
Volume mount errorVerify host path exists: ls -la <path>
Image not founddocker compose pull <service>
Config changeddocker compose up -d --force-recreate <service>

After Fixing

Always verify the service is healthy:

docker compose ps  # status should be "Up"
curl -s http://localhost:<port>/health  # if applicable

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.