Skip to content

Commit 8dae07a

Browse files
committed
lifecycle: Add a list outlining the usual flow
Signed-off-by: W. Trevor King <[email protected]>
1 parent fcd496c commit 8dae07a

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

lifecycle.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
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

726
Creates the container: file system, namespaces, cgroups, capabilities.

0 commit comments

Comments
 (0)