Skip to content
masterclass Buddy

Docker · Command

docker compose build

Builds or rebuilds Docker images for Compose services. You can build all services or name specific services, and options control caching, pulling, pushing, attestations, and dependencies.

Last updated

Syntax

docker compose build [OPTIONS] [SERVICE...]

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

Subscribe
  • build
  • image
  • pull_policy
  • --build-arg
  • --builder
  • --check
  • --no-cache
  • --print

Source: docker compose build. Checked 2026-11-03.