mirror of https://github.com/docker/docs.git
BuildKit supports multiple cache exporters
Related to https://github.com/docker/docs/issues/18590
This commit is contained in:
parent
6057a7b51f
commit
09fabd2fa0
|
@ -81,12 +81,11 @@ $ docker buildx build --push -t <registry>/<image> \
|
||||||
|
|
||||||
## Multiple caches
|
## Multiple caches
|
||||||
|
|
||||||
BuildKit currently only supports
|
BuildKit supports multiple cache exporters, allowing you to push cache to more
|
||||||
[a single cache exporter](https://github.com/moby/buildkit/pull/3024). But you
|
than one destination. You can also import from as many remote caches as you'd
|
||||||
can import from as many remote caches as you like. For example, a common pattern
|
like. For example, a common pattern is to use the cache of both the current
|
||||||
is to use the cache of both the current branch and the main branch. The
|
branch and the main branch. The following example shows importing cache from
|
||||||
following example shows importing cache from multiple locations using the
|
multiple locations using the registry cache backend:
|
||||||
registry cache backend:
|
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker buildx build --push -t <registry>/<image> \
|
$ docker buildx build --push -t <registry>/<image> \
|
||||||
|
|
Loading…
Reference in New Issue