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)
> **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
`--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
@ -580,14 +587,14 @@ $ ls ./out
vndr
```
### <a name=cache-from></a> Specifying external cache sources (--cache-from)
> **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.
### <a name=cache-from></a> Specifying external cache sources (--cache-from)
> use the [buildx](https://github.com/docker/buildx) plugin. The previous
> builder has limited support for reusing cache from pre-pulled images.
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.
@ -623,13 +630,6 @@ On another machine:
$ 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)
#### Overview