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
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,24 +114,22 @@ Any changes made to the [`config.json`](config.md) file after this operation wil
114
114
`start <container-id>`
115
115
116
116
This operation MUST [generate an error](#errors) if it is not provided the container ID.
117
-
Attempting to start a container that does not exist MUST [generate an error](#errors).
118
-
Attempting to start an already started container MUST have no effect on the container and MUST [generate an error](#errors).
117
+
Attempting to `start` a container that is not [`created`](#state) MUST have no effect on the container and MUST [generate an error](#errors).
119
118
This operation MUST run the user-specified program as specified by [`process`](config.md#process).
120
119
This operation MUST generate an error if `process` was not set.
121
120
122
121
### <aname="runtimeKill" />Kill
123
122
`kill <container-id> <signal>`
124
123
125
124
This operation MUST [generate an error](#errors) if it is not provided the container ID.
126
-
Attempting to send a signal to a container that is not running MUST have no effect on the container and MUST [generate an error](#errors).
125
+
Attempting to send a signal to a container that is neither [`created` nor `running`](#state) MUST have no effect on the container and MUST [generate an error](#errors).
127
126
This operation MUST send the specified signal to the process in the container.
128
127
129
128
### <aname="runtimeDelete" />Delete
130
129
`delete <container-id>`
131
130
132
131
This operation MUST [generate an error](#errors) if it is not provided the container ID.
133
-
Attempting to delete a container that does not exist MUST [generate an error](#errors).
134
-
Attempting to delete a container whose process is still running MUST [generate an error](#errors).
132
+
Attempting to `delete` a container that is not [`stopped`](#state) MUST have no effect on the container and MUST [generate an error](#errors).
135
133
Deleting a container MUST delete the resources that were created during the `create` step.
136
134
Note that resources associated with the container, but not created by this container, MUST NOT be deleted.
137
135
Once a container is deleted its ID MAY be used by a subsequent container.
0 commit comments