Get information about files in a container Run in API Explorer

HEAD /containers/{id}/archive

A response header X-Docker-Container-Path-Stat is returned, containing a base64 - encoded JSON object with some filesystem header information about the path.

Path parameters

  • id string Required

    ID or name of the container

Query parameters

  • path string Required

    Resource in the container’s filesystem to archive.

Responses

  • 200

    no error

    Hide headers attribute Show headers attribute
    • X-Docker-Container-Path-Stat string

      A base64 - encoded JSON object with some filesystem header information about the path

  • 400 application/json

    Bad parameter

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 404 application/json

    Container or path does not exist

    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.

HEAD /containers/{id}/archive
curl \
 --request HEAD 'http://api.example.com/v1.49/containers/{id}/archive?path=string'
Response examples (400)
{
  "message": "Something went wrong."
}
Response examples (400)
{
  "message": "Something went wrong."
}
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."
}