Compose: docker-compose: --quiet for builds

Created on 19 Jun 2018  路  1Comment  路  Source: docker/compose

$ docker -v
Docker version 18.05.0-ce, build f150324
$ docker-compose -v
docker-compose version 1.21.2, build a133471

I want to silence the output of docker-compose build just like there is a --quiet command in docker if so, please display the full command required to get quiet builds.

I guess one could just redirect standard out, but I'd rather not do this.

Many thanks,

arebuild kinfeature

Most helpful comment

Has the PR for this issue been included in a release yet?

```$ docker-compose --version
docker-compose version 1.24.1, build 4667896
$ docker-compose build --quiet
Build or rebuild services.

Services are built once and then tagged as project_service,
e.g. composetest_db. If you change a service's Dockerfile or the
contents of its build directory, you can run docker-compose build to rebuild it.

Usage: build [options] [--build-arg key=val...] [SERVICE...]

Options:
--compress Compress the build context using gzip.
--force-rm Always remove intermediate containers.
--no-cache Do not use cache when building the image.
--pull Always attempt to pull a newer version of the image.
-m, --memory MEM Sets memory limit for the build container.
--build-arg key=val Set build-time variables for services.
--parallel Build images in parallel.
```

>All comments

Has the PR for this issue been included in a release yet?

```$ docker-compose --version
docker-compose version 1.24.1, build 4667896
$ docker-compose build --quiet
Build or rebuild services.

Services are built once and then tagged as project_service,
e.g. composetest_db. If you change a service's Dockerfile or the
contents of its build directory, you can run docker-compose build to rebuild it.

Usage: build [options] [--build-arg key=val...] [SERVICE...]

Options:
--compress Compress the build context using gzip.
--force-rm Always remove intermediate containers.
--no-cache Do not use cache when building the image.
--pull Always attempt to pull a newer version of the image.
-m, --memory MEM Sets memory limit for the build container.
--build-arg key=val Set build-time variables for services.
--parallel Build images in parallel.
```

Was this page helpful?
0 / 5 - 0 ratings