Docker Troubleshooting

Immediate container exit diagnosis

Determine whether process completion is expected, and correlate failed startup or termination with scoped state and time evidence. Use verified full ID and correlate same-lifetime state, events and bounded logs.

Formal Syntax & Structure

docker syntaxdocker
Workload contract / exit code / OOM state / logs

Working Example

Example Snippetdocker
docker inspect --format '{{.State.ExitCode}} {{.State.OOMKilled}}' bm-triage
Docker Reference