Export a container Run in API Explorer

GET /containers/{id}/export

Export the contents of a container as a tarball.

Path parameters

  • id string Required

    ID or name of the container

Responses

  • 200

    no error

  • 404 application/octet-stream

    no such container

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 500 application/octet-stream

    server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

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