2015-06-25 08:15:48 +08:00
|
|
|
# Runtime and Lifecycle
|
2015-06-06 08:39:27 +08:00
|
|
|
|
2015-06-25 08:15:48 +08:00
|
|
|
## Lifecycle
|
2015-06-06 08:39:27 +08:00
|
|
|
|
2015-06-25 08:15:48 +08:00
|
|
|
### Create
|
2015-06-17 09:08:14 +08:00
|
|
|
|
|
|
|
Creates the container: file system, namespaces, cgroups, capabilities.
|
|
|
|
|
2015-06-25 08:15:48 +08:00
|
|
|
### Start (process)
|
2015-06-17 09:08:14 +08:00
|
|
|
|
|
|
|
Runs a process in a container. Can be invoked several times.
|
|
|
|
|
2015-06-25 08:15:48 +08:00
|
|
|
### Stop (process)
|
2015-06-17 09:08:14 +08:00
|
|
|
|
2015-07-26 14:52:23 +08:00
|
|
|
Not sure we need that from runc cli. Process is killed from the outside.
|
2015-06-17 09:08:14 +08:00
|
|
|
|
2015-07-26 14:52:23 +08:00
|
|
|
This event needs to be captured by runc to run onstop event handlers.
|