Skip to content

Commit 65d9d6b

Browse files
author
W. Trevor King
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 579548a commit 65d9d6b

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
@@ -16,9 +16,10 @@ 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:
1818

19-
* `created`: the container process has neither exited nor executed the user-specified program
20-
* `running`: the container process has executed the user-specified program but has not exited
21-
* `stopped`: the container process has exited
19+
* `creating`: the container is being created (step 2 in the [lifecycle](#lifecycle))
20+
* `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 program
21+
* `running`: the container process has executed the user-specified program but has not exited (after step 4 in the [lifecycle](#lifecycle))
22+
* `stopped`: the container process has exited (step 5 in the [lifecycle](#lifecycle))
2223

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

0 commit comments

Comments
 (0)