Stop a container Run in API Explorer

POST /containers/{id}/stop

Path parameters

  • id string Required

    ID or name of the container

Query parameters

  • signal string

    Signal to send to the container as an integer or string (e.g. SIGINT).

  • t integer

    Number of seconds to wait before killing the container

Responses

  • 204

    no error

  • 304

    container already stopped

  • 404 application/json

    no such container

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 500 application/json

    server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

POST /containers/{id}/stop
curl \
 --request POST 'http://api.example.com/v1.44/containers/{id}/stop'
Response examples (404)
{
  "message": "No such container: c2ada9df5af8"
}
Response examples (404)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}