Intermediate Containers & Virtualization #container-lifecycle#restart-policy#health-check#oom-killer

Container Lifecycle Language

5 exercises — Master the English vocabulary of the container lifecycle: state transitions, restart policies, OOM kills, health check states, and exit codes.

0 / 5 completed
Quick reference: Container lifecycle vocabulary
  • States — created → running → (paused) → exited → removed
  • unless-stopped — restarts after crash/reboot but not after deliberate docker stop
  • Exit 137 = SIGKILL (128+9), OOM kill; Exit 143 = SIGTERM (128+15), docker stop
  • Health check states — starting → healthy → unhealthy
  • Orchestrators (Swarm, K8s) auto-replace unhealthy containers; plain Docker does not
1 / 5

A developer runs docker ps -a and asks a teammate: "Walk me through the full container lifecycle — what states can a container be in and in what order?"

Which sequence correctly describes the Docker container state flow?