---
title: "Changes to Attach to a container"
method: POST
path: "/containers/{id}/attach"
---

# Changes to Attach to a container

`POST /containers/{id}/attach`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 79 revisions.

- **2026-02-24** `6df97b60796c`: 1 breaking, 6 info
- **2026-02-14** `31f80d10d31a`: 6 breaking, 6 info
- **2026-02-09** `831637d06c77`: 6 info

## Changes

- **2026-02-24** `6df97b60796c`: 1 breaking, 6 info
  - removed the success response with the status `204`
  - api tag `Container` added
  - added the non-success response with the status `101`
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
  - added the non-success response with the status `500`
  - added the success response with the status `200`
- **2026-02-14** `31f80d10d31a`: 6 breaking, 6 info
  - for the `query` request parameter `logs`, default value `false` was removed
  - for the `query` request parameter `stderr`, default value `false` was removed
  - for the `query` request parameter `stdin`, default value `false` was removed
  - for the `query` request parameter `stdout`, default value `false` was removed
  - for the `query` request parameter `stream`, default value `false` was removed
  - removed the success response with the status `200`
  - api tag `Container` removed
  - removed the non-success response with the status `101`
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `500`
  - added the success response with the status `204`
- **2026-02-09** `831637d06c77`: 6 info
  - added the media type `application/vnd.docker.multiplexed-stream` for the response with the status `400`
  - added the media type `application/vnd.docker.multiplexed-stream` for the response with the status `404`
  - added the media type `application/vnd.docker.multiplexed-stream` for the response with the status `500`
  - added the media type `application/vnd.docker.raw-stream` for the response with the status `400`
  - added the media type `application/vnd.docker.raw-stream` for the response with the status `404`
  - added the media type `application/vnd.docker.raw-stream` for the response with the status `500`

---

[Operation](https://skmtc.dev/hexlet/apis/docker-engine-api/docs/containers/:id/attach/post.md) - [API](https://skmtc.dev/hexlet/apis/docker-engine-api.md) - [Page](https://skmtc.dev/hexlet/apis/docker-engine-api/changes/containers/:id/attach/post)
