Skip to content

Commit b33fb3d

Browse files
committed
Allow created containers to be killed and clarify start/delete
Signed-off-by: Mrunal Patel <[email protected]>
1 parent fd0b0b6 commit b33fb3d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

runtime.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,24 +114,22 @@ Any changes made to the [`config.json`](config.md) file after this operation wil
114114
`start <container-id>`
115115

116116
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).
119118
This operation MUST run the user-specified program as specified by [`process`](config.md#process).
120119
This operation MUST generate an error if `process` was not set.
121120

122121
### <a name="runtimeKill" />Kill
123122
`kill <container-id> <signal>`
124123

125124
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).
127126
This operation MUST send the specified signal to the process in the container.
128127

129128
### <a name="runtimeDelete" />Delete
130129
`delete <container-id>`
131130

132131
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).
135133
Deleting a container MUST delete the resources that were created during the `create` step.
136134
Note that resources associated with the container, but not created by this container, MUST NOT be deleted.
137135
Once a container is deleted its ID MAY be used by a subsequent container.

0 commit comments

Comments
 (0)