February 2019
Intermediate to advanced
240 pages
5h 25m
English
A common thing we’ll need to do while developing our application is to stop or start the various services that make it up. In a moment, we’ll dive into the fine-grained control Compose gives us to do this. Before we do, though, it’s helpful to have in mind the journey that containers go through, from creation until they are no longer needed.
The following figure shows a simplified version of a container’s life cycle:

A container comes into existence in the created state. It doesn’t execute any code; it merely sits around waiting until it’s called for. When the container is started, it moves into the running state, ...