mirror of https://github.com/docker/docs.git
build(cloud): use with Docker Compose
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
a1015ad58d
commit
79466b9bd3
|
@ -49,6 +49,25 @@ confusion with regards to builder selection. Alternatively, you can run `docker
|
||||||
buildx install` to make the default `docker build` command behave like `docker
|
buildx install` to make the default `docker build` command behave like `docker
|
||||||
buildx build`, without discrepancies.
|
buildx build`, without discrepancies.
|
||||||
|
|
||||||
|
## Use with Docker Compose
|
||||||
|
|
||||||
|
To build with Docker Build Cloud using `docker compose build`, first set the
|
||||||
|
cloud builder as your selected builder, then run your build.
|
||||||
|
|
||||||
|
> **Note**
|
||||||
|
>
|
||||||
|
> Make sure you're using a supported version of Docker Compose, see
|
||||||
|
> [Prerequisites](setup.md#prerequisites).
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ docker buildx use cloud-<ORG>-<BUILDER_NAME>
|
||||||
|
$ docker compose build
|
||||||
|
```
|
||||||
|
|
||||||
|
In addition to `docker buildx use`, you can also use the `docker compose build
|
||||||
|
--builder` flag or the [`BUILDX_BUILDER` environment
|
||||||
|
variable](../building/env-vars.md#buildx_builder) to select the cloud builder.
|
||||||
|
|
||||||
## Loading build results
|
## Loading build results
|
||||||
|
|
||||||
Building with `--tag` loads the build result to the local image store
|
Building with `--tag` loads the build result to the local image store
|
||||||
|
|
Loading…
Reference in New Issue