advancedTop 100 Interview Questions
What are the container lifecycle states?
created (filesystem and config set up, not started) → running → paused (optional, process frozen) → stopped/exited (process ended) → removed. A container can also go directly from running to removed if `--rm` or explicit `docker rm` is used after stopping.
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