---
title: "Extract an archive of files or folders to a directory in a container"
method: PUT
path: "/containers/{id}/archive"
tags: ["Container"]
---

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

`PUT /containers/{id}/archive`

Upload a tar archive to be extracted to a path in the filesystem of container id.

## Path parameters

- `id` string, required

## Query parameters

- `path` string, required
- `noOverwriteDirNonDir` string

## Response `200`

The content was extracted successfully

## Other responses

- `400` — Bad parameter
- `403` — Permission denied, the volume or container rootfs is marked as read-only.
- `404` — No such container or path does not exist inside the container
- `500` — Server error

---

[API](https://skmtc.net/docker/apis/engine.md) · [All operations](https://skmtc.net/docker/apis/engine/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docker/engine/versions/400730735b03/schema)
