docker-rust
docker-rust copied to clipboard
Kill a container
Example request:
POST /containers/e90e34656806/kill HTTP/1.1
Example response:
HTTP/1.1 204 OK
Query Parameters
- signal - Signal to send to the container: integer or string like "SIGINT". When not set, SIGKILL is assumed and the call will waits for the container to exit.
Status Codes:
- 204 – no error
- 404 – no such container
- 500 – server error