Move notes about required buildkit
Signed-off-by: Mathieu Rollet <matletix@gmail.com>
This commit is contained in:
Родитель
e1f24d3c93
Коммит
f41cbf9dc1
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче