What are the container states in Docker?
BeginnerConceptContainers, VMs & Isolation Internals
Answer
created, running, paused (cgroup freezer), restarting, exited, removing and dead. Inspect with docker inspect -f '{{.State.Status}}' c or docker ps -a --filter status=exited.
flowchart LR
created --> running
running --> paused --> running
running --> exited
exited --> running
exited --> removing --> gone
More on Containers, VMs & Isolation Internals
What is a container, in one sentence?BeginnerHow do containers differ from virtual machines?BeginnerCan a Linux container run a Windows application, or the reverse?IntermediateWhat are Linux namespaces? Name the ones Docker uses.BeginnerWhat are cgroups and what do they do for containers?BeginnerWhat is PID 1 in a container and why does it matter?Intermediate