---
title: "Changes to Build an image"
method: POST
path: "/build"
---

# Changes to Build an image

`POST /build`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 79 revisions.

- **2026-02-24** `6df97b60796c`: 2 breaking, 5 info
- **2026-02-14** `31f80d10d31a`: 18 breaking, 1 warning, 5 info
- **2026-02-09** `831637d06c77`: 3 info

## Changes

- **2026-02-24** `6df97b60796c`: 2 breaking, 5 info
  - removed the request body
  - removed the success response with the status `204`
  - api tag `Image` added
  - added the new optional `header` request parameter `Content-type`
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - added the success response with the status `200`
- **2026-02-14** `31f80d10d31a`: 18 breaking, 1 warning, 5 info
  - request body became required
  - removed the media type `application/octet-stream` from the request body
  - for the `query` request parameter `dockerfile`, default value `Dockerfile` was removed
  - for the `query` request parameter `forcerm`, default value `false` was removed
  - for the `query` request parameter `nocache`, default value `false` was removed
  - for the `query` request parameter `outputs`, default value `` was removed
  - for the `query` request parameter `platform`, default value `` was removed
  - for the `query` request parameter `q`, default value `false` was removed
  - for the `query` request parameter `rm`, default value `true` was removed
  - for the `query` request parameter `target`, default value `` was removed
  - for the `query` request parameter `version`, default value `1` was removed
  - for the `query` request parameter `cpuperiod`, the format changed from no format to `int32`
  - for the `query` request parameter `cpuquota`, the format changed from no format to `int32`
  - for the `query` request parameter `cpushares`, the format changed from no format to `int32`
  - for the `query` request parameter `memory`, the format changed from no format to `int32`
  - for the `query` request parameter `memswap`, the format changed from no format to `int32`
  - for the `query` request parameter `shmsize`, the format changed from no format to `int32`
  - removed the success response with the status `200`
  - deleted the `header` request parameter `Content-type`
  - api tag `Image` removed
  - added the media type `application/x-tar` to the request body
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `500`
  - added the success response with the status `204`
- **2026-02-09** `831637d06c77`: 3 info
  - added optional request body
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `500`

---

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