---
title: "POST /containers/{id}/attach"
method: POST
path: "/containers/{id}/attach"
---

# POST /containers/{id}/attach

`POST /containers/{id}/attach`

Attach to a container

## Path parameters

- `id` string, required

## Query parameters

- `detachKeys` string
- `logs` boolean
- `stream` boolean
- `stdin` boolean
- `stdout` boolean
- `stderr` boolean

## Response `204`

There is no content to send for this request, but the headers may be useful.

---

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