Skip to content

Commit d83516e

Browse files
committed
lifecycle: Add an explicit container-destroy step
It doesn't make sense to split creation into "create" and "start" while only having one "stop" command for both the application and container teardown.
1 parent 7c1975d commit d83516e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lifecycle.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ A typical lifecyle progresses like this:
1515
9. The runtime sends a termination signal to the application
1616
10. The application exits
1717
11. The runtime executes any [post-stop hooks](runtime.md#post-stop)
18-
12. The runtime removes the container
18+
12. A user tells the runtime to [destroy](#destroy) the container
19+
13. The runtime removes the container
1920

2021
With steps 8 and 9, the user is explicitly stopping the application
2122
(via the runtime), but it's also possible that the application could
@@ -34,3 +35,8 @@ Runs a process in a container. Can be invoked several times.
3435
Not sure we need that from runc cli. Process is killed from the outside.
3536

3637
This event needs to be captured by runc to run onstop event handlers.
38+
39+
### Destroy
40+
41+
Remove the container: unmount file systems, remove namespaces, etc.
42+
This is the inverse of [create](#create).

0 commit comments

Comments
 (0)