Skip to content

docs: clarify tag param description in local cache docs#25169

Open
Se3do wants to merge 1 commit into
docker:mainfrom
Se3do:fix/local-cache-tag-docs
Open

docs: clarify tag param description in local cache docs#25169
Se3do wants to merge 1 commit into
docker:mainfrom
Se3do:fix/local-cache-tag-docs

Conversation

@Se3do
Copy link
Copy Markdown

@Se3do Se3do commented May 27, 2026

Description

moby/buildkit#3111 added support for the tag parameter for the local
cache backend in 2022. This PR removes the stale FIXME comment referencing
that change and documents the parameter in the local cache backend docs.

The tag parameter allows users to assign custom reference names to cache
entries in index.json. This is useful for storing multiple cache outputs
in the same directory without overwriting existing entries.

This PR:

  • Removes the stale FIXME comment referencing moby/buildkit#3111
    (merged in Sep 2022 and released years ago)
  • Adds the tag parameter to the CSV parameters table for both
    cache-to and cache-from
  • Documents tag usage in the cache versioning section with export
    and import examples

Related issues or tickets

  • moby/buildkit#3111 — added tag parameter for local cache exporter

Reviews

  • Technical review
  • Editorial review
  • Product review

@Se3do Se3do requested a review from dvdksn as a code owner May 27, 2026 01:18
Copilot AI review requested due to automatic review settings May 27, 2026 01:18
@netlify
Copy link
Copy Markdown

netlify Bot commented May 27, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit fd35847
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a164651c6772600080db40d
😎 Deploy Preview https://deploy-preview-25169--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the area/build Relates to Dockerfiles or docker build command label May 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the local cache backend documentation to include support for naming cache references via a tag parameter, and clarifies cache versioning behavior.

Changes:

  • Reformats the CSV-parameter table and adds a new tag parameter for cache-to/cache-from.
  • Removes an outdated “FIXME” comment referencing an old BuildKit PR.
  • Adds explanatory text and examples showing how tag affects the local OCI layout index.json.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +27 to +39
| Name | Option | Type | Default | Description |
| ------------------- | ----------------------- | ----------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `src` | `cache-from` | String | | Path of the local directory where cache gets imported from. |
| `digest` | `cache-from` | String | | Digest of manifest to import, see [cache versioning][4]. |
| `tag` | `cache-to`, `cache-from` | String | `latest` | Custom tag for the cache image in the local index, see [cache versioning][4]. |
| `dest` | `cache-to` | String | | Path of the local directory where cache gets exported to. |
| `mode` | `cache-to` | `min`,`max` | `min` | Cache layers to export, see [cache mode][1]. |
| `oci-mediatypes` | `cache-to` | `true`,`false` | `true` | Use OCI media types in exported manifests, see [OCI media types][2]. |
| `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]. |
| `compression` | `cache-to` | `gzip`,`estargz`,`zstd` | `gzip` | Compression type, see [cache compression][3]. |
| `compression-level` | `cache-to` | `0..22` | | Compression level, see [cache compression][3]. |
| `force-compression` | `cache-to` | `true`,`false` | `false` | Forcibly apply compression, see [cache compression][3]. |
| `ignore-error` | `cache-to` | Boolean | `false` | Ignore errors caused by failed cache exports. |
tag. This lets you store multiple cache outputs in the same directory by
using different cache reference names; reusing the same `tag` will update that
reference in `index.json`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Relates to Dockerfiles or docker build command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants