Skip to content

Commit 778b218

Browse files
committed
build: image-manifest enabled by default for cache export
Signed-off-by: CrazyMax <[email protected]>
1 parent d03288e commit 778b218

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

content/manuals/build/cache/backends/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,6 @@ $ docker buildx build --push -t <registry>/<image> \
179179
--cache-to type=registry,ref=<registry>/<cache-image>,oci-mediatypes=true,image-manifest=true \
180180
--cache-from type=registry,ref=<registry>/<cache-image> .
181181
```
182+
183+
> [!NOTE]
184+
> Since BuildKit v0.21, `image-manifest` is enabled by default.

content/manuals/build/cache/backends/local.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ The following table describes the available CSV parameters that you can pass to
2525
`--cache-to` and `--cache-from`.
2626

2727
| Name | Option | Type | Default | Description |
28-
| ------------------- | ------------ | ----------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------- |
28+
|---------------------|--------------|-------------------------|---------|---------------------------------------------------------------------------------------------------------------------------------|
2929
| `src` | `cache-from` | String | | Path of the local directory where cache gets imported from. |
3030
| `digest` | `cache-from` | String | | Digest of manifest to import, see [cache versioning][4]. |
3131
| `dest` | `cache-to` | String | | Path of the local directory where cache gets exported to. |
3232
| `mode` | `cache-to` | `min`,`max` | `min` | Cache layers to export, see [cache mode][1]. |
3333
| `oci-mediatypes` | `cache-to` | `true`,`false` | `true` | Use OCI media types in exported manifests, see [OCI media types][2]. |
34-
| `image-manifest` | `cache-to` | `true`,`false` | `false` | When using OCI media types, generate an image manifest instead of an image index for the cache image, see [OCI media types][2]. |
34+
| `image-manifest` | `cache-to` | `true`,`false` | `true` | When using OCI media types, generate an image manifest instead of an image index for the cache image, see [OCI media types][2]. |
3535
| `compression` | `cache-to` | `gzip`,`estargz`,`zstd` | `gzip` | Compression type, see [cache compression][3]. |
3636
| `compression-level` | `cache-to` | `0..22` | | Compression level, see [cache compression][3]. |
3737
| `force-compression` | `cache-to` | `true`,`false` | `false` | Forcibly apply compression, see [cache compression][3]. |

content/manuals/build/cache/backends/registry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ The following table describes the available CSV parameters that you can pass to
3737
`--cache-to` and `--cache-from`.
3838

3939
| Name | Option | Type | Default | Description |
40-
| ------------------- | ----------------------- | ----------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------- |
40+
|---------------------|-------------------------|-------------------------|---------|---------------------------------------------------------------------------------------------------------------------------------|
4141
| `ref` | `cache-to`,`cache-from` | String | | Full name of the cache image to import. |
4242
| `mode` | `cache-to` | `min`,`max` | `min` | Cache layers to export, see [cache mode][1]. |
4343
| `oci-mediatypes` | `cache-to` | `true`,`false` | `true` | Use OCI media types in exported manifests, see [OCI media types][2]. |
44-
| `image-manifest` | `cache-to` | `true`,`false` | `false` | When using OCI media types, generate an image manifest instead of an image index for the cache image, see [OCI media types][2]. |
44+
| `image-manifest` | `cache-to` | `true`,`false` | `true` | When using OCI media types, generate an image manifest instead of an image index for the cache image, see [OCI media types][2]. |
4545
| `compression` | `cache-to` | `gzip`,`estargz`,`zstd` | `gzip` | Compression type, see [cache compression][3]. |
4646
| `compression-level` | `cache-to` | `0..22` | | Compression level, see [cache compression][3]. |
4747
| `force-compression` | `cache-to` | `true`,`false` | `false` | Forcibly apply compression, see [cache compression][3]. |

0 commit comments

Comments
 (0)