docker-compose build [services...]

Build or rebuild services

Arguments

NameDescription
services

Options

NameDescription
--build-arg <key=value>
  • Repeatable ♾
--compressCompress the build context using gzip. DEPRECATED
--force-rmAlways remove intermediate containers. DEPRECATED
--memory, -m <memory>Set memory limit for the build container. Not supported on buildkit yet
--no-cacheDo not use cache when building the image
--no-rmDo not remove intermediate containers after a successful build. DEPRECATED
--parallelBuild images in parallel. DEPRECATED
--progress <progress>Set type of progress output (auto, tty, plain, quiet)
--pullAlways attempt to pull a newer version of the image
--quiet, -qDon't print anything to STDOUT
--ssh <ssh>Set SSH authentications used when building service images. (use 'default' for using your default SSH Agent)