2021-03-08 15:47:24 +01:00
command : docker compose build
short : Build or rebuild services
2021-09-13 17:38:29 +02:00
long : "Services are built once and then tagged, by default as `project_service`. \n\nIf the Compose file specifies an\n[image](https://github.com/compose-spec/compose-spec/blob/master/spec.md#image) name, \nthe image is tagged with that name, substituting any variables beforehand. See\n[variable interpolation](https://github.com/compose-spec/compose-spec/blob/master/spec.md#interpolation).\n\nIf you change a service's `Dockerfile` or the contents of its build directory, \nrun `docker compose build` to rebuild it."
2021-03-08 15:47:24 +01:00
usage : docker compose build [SERVICE...]
pname : docker compose
plink : docker_compose.yaml
options :
2021-09-13 17:38:29 +02:00
- option : build-arg
value_type : stringArray
default_value : '[]'
description : Set build-time variables for services.
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
- option : compress
value_type : bool
default_value : "true"
description : Compress the build context using gzip. DEPRECATED
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
- option : force-rm
value_type : bool
default_value : "true"
description : Always remove intermediate containers. DEPRECATED
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
- option : memory
shorthand : m
value_type : string
description : |
2021-05-05 17:37:08 +02:00
Set memory limit for the build container. Not supported on buildkit yet.
2021-09-13 17:38:29 +02:00
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
- option : no -cache
value_type : bool
default_value : "false"
description : Do not use cache when building the image
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
- option : no -rm
value_type : bool
default_value : "false"
description : |
2021-05-05 17:37:08 +02:00
Do not remove intermediate containers after a successful build. DEPRECATED
2021-09-13 17:38:29 +02:00
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
- option : parallel
value_type : bool
default_value : "true"
description : Build images in parallel. DEPRECATED
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
- option : progress
value_type : string
default_value : auto
description : Set type of progress output ("auto", "plain", "noTty")
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
- option : pull
value_type : bool
default_value : "false"
description : Always attempt to pull a newer version of the image.
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
- option : quiet
shorthand : q
value_type : bool
default_value : "false"
description : Don't print anything to STDOUT
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false
2021-03-08 15:47:24 +01:00
deprecated : false
experimental : false
experimentalcli : false
kubernetes : false
swarm : false