Skip to content

Commit 2dc8754

Browse files
committed
runtime: Add 'creating' to state status
To distinguish between "we're still setting this container up" and "we're finished setting up; you can call 'start' if you like". Also reference the lifecycle steps, because you can't be too explicit Signed-off-by: W. Trevor King <[email protected]>
1 parent 7797b33 commit 2dc8754

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

runtime.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ This MUST be unique across all containers on this host.
1515
There is no requirement that it be unique across hosts.
1616
* **`status`**: (string) is the runtime state of the container.
1717
The value MAY be one of:
18-
* `created`: the container process has neither exited nor executed the user-specified code
19-
* `running`: the container process has executed the user-specified code but has not exited
20-
* `stopped`: the container process has exited
18+
* `creating`: the container is being created (step 2 in the [lifecycle](#lifecycle))
19+
* `created`: the runtime has finished the [create operation](#create) (after step 2 in the [lifecycle](#lifecycle)), and the container process has neither exited nor executed the user-specified code
20+
* `running`: the container process has executed the user-specified code but has not exited (after step 4 in the [lifecycle](#lifecycle))
21+
* `stopped`: the container process has exited (step 5 in the [lifecycle](#lifecycle))
2122

2223
Additional values MAY be defined by the runtime, however, they MUST be used to represent new runtime states not defined above.
2324
* **`pid`**: (int) is the ID of the container process, as seen by the host.

0 commit comments

Comments
 (0)