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.
- The state diagram
- Created: docker create
- Running: docker start / docker run
- Paused: docker pause / unpause
- Stopped: docker stop (graceful) vs docker kill (SIGKILL)
- Removed: docker rm
- Exited is not removed — docker ps vs docker ps -a
- A peek at restart policies