container_autopsy
Diagnose why a Docker container died by collecting exit code, OOM state, restart count, uptime, and logs. Get a markdown report with the cause and exact fix.
Instructions
Diagnose WHY a Docker container died, not just THAT it died. Collects exit code, OOM state, restart count, uptime and last log lines, then returns a markdown autopsy report with the cause of death and the exact fix. Works on running containers too.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of log lines to collect (default 40). | |
| container | Yes | Container name or id to autopsy. |