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.
SubscribeRelated
buildimagepull_policy--build-arg--builder--check--no-cache--print