Container

Extract an archive of files or folders to a directory in a container

Upload a tar archive to be extracted to a path in the filesystem of container id. path parameter is asserted to be a directory. If it exists as a file, 400 error will be returned with message "not a directory".

put/containers/{id}/archive

Request

  • Base URL
    /v1.49 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /v1.49/containers/{id}/archive
  • Auth
    none declared

Path parameters

idstring required

ID or name of the container

Query parameters

pathstring required

Path to a directory in the container to extract the archive’s contents into.

noOverwriteDirNonDirstring

If 1, true, or True then it will be an error if unpacking the given content would cause an existing directory to be replaced with a non-directory and vice versa.

copyUIDGIDstring

If 1, true, then it will copy UID/GID maps to the dest file or dir

Request body application/x-tar

string binary required

Response

The content was extracted successfully

Changes

No recorded changes to this operation across all 4 revisions of this API.