File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## Lifecycle
44
5+ A typical lifecyle progresses like this:
6+
7+ 1 . There is no container or running application
8+ 2 . A user tells the runtime to [ create] ( #create ) a container
9+ 3 . The runtime creates the container
10+ 4 . A user tells the runtime to [ start] ( #start-process ) an application
11+ 5 . The runtime executes any [ pre-start hooks] ( runtime.md#pre-start )
12+ 6 . The runtime executes the application
13+ 7 . The application is running
14+ 8 . A user tells the runtime to [ stop] ( #stop ) an application
15+ 9 . The runtime sends a termination signal to the application
16+ 10 . The application exits
17+ 11 . The runtime executes any [ post-stop hooks] ( runtime.md#post-stop )
18+ 12 . The runtime removes the container
19+
20+ With steps 8 and 9, the user is explicitly stopping the application
21+ (via the runtime), but it's also possible that the application could
22+ exit for other reasons. In that case we skip directly from 7 to 10.
23+
524### Create
625
726Creates the container: file system, namespaces, cgroups, capabilities.
You can’t perform that action at this time.
0 commit comments