Merge pull request #3730 from matletix/master

Move notes about required buildkit
This commit is contained in:
Sebastiaan van Stijn 2022-08-16 17:21:30 +02:00 committed by GitHub
commit 8ffaab8bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -495,6 +495,13 @@ $ docker build -t mybuildimage --target build-env .
### <a name=output></a> Custom build outputs (--output) ### <a name=output></a> Custom build outputs (--output)
> **Note**
>
> This feature requires the BuildKit backend. You can either
> [enable BuildKit](https://docs.docker.com/engine/reference/builder/#buildkit) or
> use the [buildx](https://github.com/docker/buildx) plugin which provides more
> output type options.
By default, a local container image is created from the build result. The By default, a local container image is created from the build result. The
`--output` (or `-o`) flag allows you to override this behavior, and a specify a `--output` (or `-o`) flag allows you to override this behavior, and a specify a
custom exporter. For example, custom exporters allow you to export the build custom exporter. For example, custom exporters allow you to export the build
@ -580,14 +587,14 @@ $ ls ./out
vndr vndr
``` ```
### <a name=cache-from></a> Specifying external cache sources (--cache-from)
> **Note** > **Note**
> >
> This feature requires the BuildKit backend. You can either > This feature requires the BuildKit backend. You can either
> [enable BuildKit](https://docs.docker.com/engine/reference/builder/#buildkit) or > [enable BuildKit](https://docs.docker.com/engine/reference/builder/#buildkit) or
> use the [buildx](https://github.com/docker/buildx) plugin which provides more > use the [buildx](https://github.com/docker/buildx) plugin. The previous
> output type options. > builder has limited support for reusing cache from pre-pulled images.
### <a name=cache-from></a> Specifying external cache sources (--cache-from)
In addition to local build cache, the builder can reuse the cache generated from In addition to local build cache, the builder can reuse the cache generated from
previous builds with the `--cache-from` flag pointing to an image in the registry. previous builds with the `--cache-from` flag pointing to an image in the registry.
@ -623,13 +630,6 @@ On another machine:
$ docker build --cache-from myname/myapp . $ docker build --cache-from myname/myapp .
``` ```
> **Note**
>
> This feature requires the BuildKit backend. You can either
> [enable BuildKit](https://docs.docker.com/engine/reference/builder/#buildkit) or
> use the [buildx](https://github.com/docker/buildx) plugin. The previous
> builder has limited support for reusing cache from pre-pulled images.
### <a name=squash></a> Squash an image's layers (--squash) (experimental) ### <a name=squash></a> Squash an image's layers (--squash) (experimental)
#### Overview #### Overview