Skip to content
masterclass Buddy

Docker · Command

docker build

docker build uses Buildx to ask BuildKit to create an image from a Dockerfile. The command can return the image to the client or upload its output to a registry.

Last updated

Syntax

docker build [OPTIONS] PATH | URL | -

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Buildx
  • BuildKit
  • Dockerfile
  • .dockerignore
  • docker buildx build
  • Docker Hub

Source: Docker Build Overview. Checked 2026-11-03.