You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: runtime.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ This MUST be unique across all containers on this host.
15
15
There is no requirement that it be unique across hosts.
16
16
***`status`**: (string) is the runtime state of the container.
17
17
The value MAY be one of:
18
-
* `created`: the container has been created but the user-specified code has not yet been executed
19
-
* `running`: the container has been created and the user-specified code is running
20
-
* `stopped`: the container has been created and the user-specified code has been executed but is no longer running
18
+
* `created`: the container has been created but the user-specified program has not yet been executed
19
+
* `running`: the container has been created and the user-specified program is running
20
+
* `stopped`: the container has been created and the user-specified program has been executed but is no longer running
21
21
22
22
Additional values MAY be defined by the runtime, however, they MUST be used to represent new runtime states not defined above.
23
23
***`pid`**: (int) is the ID of the container process, as seen by the host.
@@ -49,12 +49,12 @@ The lifecycle describes the timeline of events that happen from when a container
49
49
1. OCI compliant runtime's [`create`](runtime.md#create) command is invoked with a reference to the location of the bundle and a unique identifier.
50
50
2. The container's runtime environment MUST be created according to the configuration in [`config.json`](config.md).
51
51
If the runtime is unable to create the environment specified in the [`config.json`](config.md), it MUST generate an error.
52
-
While the resources requested in the [`config.json`](config.md) MUST be created, the user-specified code (from [`process`](config.md#process)) MUST NOT be run at this time.
52
+
While the resources requested in the [`config.json`](config.md) MUST be created, the user-specified program (from [`process`](config.md#process)) MUST NOT be run at this time.
53
53
Any updates to [`config.json`](config.md) after this step MUST NOT affect the container.
54
54
3. Once the container is created additional actions MAY be performed based on the features the runtime chooses to support.
55
55
However, some actions might only be available based on the current state of the container (e.g. only available while it is started).
56
56
4. Runtime's [`start`](runtime.md#start) command is invoked with the unique identifier of the container.
57
-
The runtime MUST run the user-specified code, as specified by [`process`](config.md#process).
57
+
The runtime MUST run the user-specified program, as specified by [`process`](config.md#process).
58
58
5. The container's process is stopped.
59
59
This MAY happen due to them erroring out, exiting, crashing or the runtime's [`kill`](runtime.md#kill) operation being invoked.
60
60
6. Runtime's [`delete`](runtime.md#delete) command is invoked with the unique identifier of the container.
@@ -86,7 +86,7 @@ This operation MUST return the state of a container as specified in the [State](
86
86
This operation MUST generate an error if it is not provided a path to the bundle and the container ID to associate with the container.
87
87
If the ID provided is not unique across all containers within the scope of the runtime, or is not valid in any other way, the implementation MUST generate an error and a new container MUST NOT be created.
88
88
Using the data in [`config.json`](config.md), this operation MUST create a new container.
89
-
This means that all of the resources associated with the container MUST be created, however, the user-specified code MUST NOT be run at this time.
89
+
This means that all of the resources associated with the container MUST be created, however, the user-specified program MUST NOT be run at this time.
90
90
If the runtime cannot create the container as specified in [`config.md`](config.md), it MUST generate an error and a new container MUST NOT be created.
91
91
92
92
Upon successful completion of this operation the `status` property of this container MUST be `created`.
@@ -102,7 +102,7 @@ Any changes made to the [`config.json`](config.md) file after this operation wil
102
102
This operation MUST generate an error if it is not provided the container ID.
103
103
Attempting to start a container that does not exist MUST generate an error.
104
104
Attempting to start an already started container MUST have no effect on the container and MUST generate an error.
105
-
This operation MUST run the user-specified code as specified by [`process`](config.md#process).
105
+
This operation MUST run the user-specified program as specified by [`process`](config.md#process).
106
106
107
107
Upon successful completion of this operation the `status` property of this container MUST be `running`.
0 commit comments