← TEK2 videos

Container lifecycle — created, running, stopped, removed

Week 01 · 4 min

Download MP4

What this covers

A container moves through a small set of states. Every docker command you type is either one of those states or a transition between them.

  1. The state diagram
  2. Created: docker create
  3. Running: docker start / docker run
  4. Paused: docker pause / unpause
  5. Stopped: docker stop (graceful) vs docker kill (SIGKILL)
  6. Removed: docker rm
  7. Exited is not removed — docker ps vs docker ps -a
  8. A peek at restart policies