What are the possible states of the docker container?

Are there any conditions other than running, paused, and stopped, or are these the only available states?

+15
source share
2 answers

No, other possible conditions are possible. The Docker Remote API defines the following states:

  • created A container that was created (e.g. with docker create ) but not started
  • restarting A container that is in the process of restarting
  • running Current container
  • paused Container whose processes are paused
  • exited A container that is started and completed (โ€œstoppedโ€ in other contexts, although the created container is technically also โ€œstoppedโ€)
  • dead container that the daemon tried and could not stop (usually due to a loaded device or resource used by the container).
+29
source

Docker Remote API 1.24 defines another state

  • is dead
+3
source

All Articles