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
npx -y skills add choutos/agent-skills-spec --skill debug-docker-serviceAssembled 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
-
Check container status:
docker compose ps -
If container is restarting:
docker compose logs --tail=50 <service>Common causes: missing env vars, port conflicts, OOM kills.
-
If container is stopped:
docker compose up -d <service> docker compose logs -f <service> # watch startup -
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 -
Resource issues:
docker stats --no-stream df -h # disk full?
Common Fixes
| Symptom | Fix |
|---|---|
| OOM killed | Increase memory limit in compose file |
| Port conflict | Check docker compose ps for port bindings, stop conflicting service |
| Volume mount error | Verify host path exists: ls -la <path> |
| Image not found | docker compose pull <service> |
| Config changed | docker 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.