@twang2218 commented on Tue Aug 15 2017
File: edge/engine/reference/commandline/ps.md, CC @johndmulhausen
In the document, it listed a set of possible status, created|restarting|running|removing|paused|exited|dead, however, there is no explanation of each status.
I found an article explained some of the status: http://docker-saigon.github.io/post/Docker-Internals/ , but not all of them, especially the dead status. What is the difference between dead and exited?
I think we need some docs explain the lifecycle of a docker container and link the reference here.
@johndmulhausen
"dead" is used for a "defunct" container; for example, a container that you wanted to remove but was only partially removed because resources were kept busy by an external process. Dead containers cannot be (re)started, only removed. You can manually attempt to remove a dead container (if the problem causing it to not be removed in the first attempt failed), and the daemon will automatically attempt to remove dead containers when it's restarted.
Most helpful comment
@johndmulhausen
"dead" is used for a "defunct" container; for example, a container that you wanted to remove but was only partially removed because resources were kept busy by an external process. Dead containers cannot be (re)started, only removed. You can manually attempt to remove a dead container (if the problem causing it to not be removed in the first attempt failed), and the daemon will automatically attempt to remove dead containers when it's restarted.