Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.84 KB

compose_build.md

File metadata and controls

30 lines (21 loc) · 1.84 KB

docker compose build

Build or rebuild services

Options

Name Type Default Description
--build-arg stringArray Set build-time variables for services.
--no-cache Do not use cache when building the image
--progress string auto Set type of progress output (auto, tty, plain, quiet)
--pull Always attempt to pull a newer version of the image.
-q, --quiet Don't print anything to STDOUT
--ssh string Set SSH authentications used when building service images. (use 'default' for using your default SSH Agent)

Description

Services are built once and then tagged, by default as project_service.

If the Compose file specifies an image name, the image is tagged with that name, substituting any variables beforehand. See variable interpolation.

If you change a service's Dockerfile or the contents of its build directory, run docker compose build to rebuild it.