---
title: "POST /build"
method: POST
path: "/build"
---

# POST /build

`POST /build`

Build an image

## Query parameters

- `dockerfile` string
- `t` string
- `extrahosts` string
- `remote` string
- `q` boolean
- `nocache` boolean
- `cachefrom` string
- `pull` string
- `rm` boolean
- `forcerm` boolean
- `memory` integer
- `memswap` integer
- `cpushares` integer
- `cpusetcpus` string
- `cpuperiod` integer
- `cpuquota` integer
- `buildargs` string
- `shmsize` integer
- `squash` boolean
- `labels` string
- `networkmode` string
- `platform` string
- `target` string
- `outputs` string
- `version` '1' | '2'

## Headers

- `X-Registry-Config` string

## 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)
