Are there states other than "running", "paused" and "stopped" or are these the only states available?
Asked
Active
Viewed 1.9k times
21
-
1check this link: https://medium.com/@nagarwal/lifecycle-of-docker-container-d2da9f85959 – rsjethani Apr 11 '18 at 18:24
2 Answers
41
No, there are other possible states. The Docker Remote API defines the following states:
created
A container that has been created (e.g. withdocker create
) but not startedrestarting
A container that is in the process of being restartedrunning
A currently running containerpaused
A container whose processes have been pausedexited
A container that ran and completed ("stopped" in other contexts, although acreated
container is technically also "stopped")dead
A container that the daemon tried and failed to stop (usually due to a busy device or resource used by the container)
Adrian Mouat
- 38,986
- 15
- 98
- 99