beginnerImages, Layers, Caching & Container Lifecycle
Explain the container lifecycle states.
Created (filesystem and config prepared, not started) -> Running (process started) -> Paused (frozen via cgroups freezer, process suspended but not stopped) -> Stopped/Exited (PID 1 exited, container metadata retained) -> Removed (writable layer and metadata deleted). docker run combines create and start; docker rm -f combines stop and remove.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response