Skip to content

Commit 070d993

Browse files
authored
Merge pull request #6101 from crazy-max/docs-build-name
dockerfile: docs for BUILDKIT_BUILD_NAME built-in build-arg
2 parents e76dbec + aa36c48 commit 070d993

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,16 +2624,17 @@ RUN echo "I'm building for $TARGETPLATFORM"
26242624

26252625
### BuildKit built-in build args
26262626

2627-
| Arg | Type | Description |
2628-
|----------------------------------|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
2629-
| `BUILDKIT_CACHE_MOUNT_NS` | String | Set optional cache ID namespace. |
2630-
| `BUILDKIT_CONTEXT_KEEP_GIT_DIR` | Bool | Trigger Git context to keep the `.git` directory. |
2631-
| `BUILDKIT_HISTORY_PROVENANCE_V1` | Bool | Enable [SLSA Provenance v1](https://slsa.dev/spec/v1.1/provenance) for build history record. |
2632-
| `BUILDKIT_INLINE_CACHE`[^2] | Bool | Inline cache metadata to image config or not. |
2633-
| `BUILDKIT_MULTI_PLATFORM` | Bool | Opt into deterministic output regardless of multi-platform output or not. |
2634-
| `BUILDKIT_SANDBOX_HOSTNAME` | String | Set the hostname (default `buildkitsandbox`) |
2635-
| `BUILDKIT_SYNTAX` | String | Set frontend image |
2636-
| `SOURCE_DATE_EPOCH` | Int | Set the Unix timestamp for created image and layers. More info from [reproducible builds](https://reproducible-builds.org/docs/source-date-epoch/). Supported since Dockerfile 1.5, BuildKit 0.11 |
2627+
| Arg | Type | Description |
2628+
|----------------------------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
2629+
| `BUILDKIT_BUILD_NAME` | String | Override the build name shown in [`buildx history` command](https://docs.docker.com/reference/cli/docker/buildx/history/) and [Docker Desktop Builds view](https://docs.docker.com/desktop/use-desktop/builds/). |
2630+
| `BUILDKIT_CACHE_MOUNT_NS` | String | Set optional cache ID namespace. |
2631+
| `BUILDKIT_CONTEXT_KEEP_GIT_DIR` | Bool | Trigger Git context to keep the `.git` directory. |
2632+
| `BUILDKIT_HISTORY_PROVENANCE_V1` | Bool | Enable [SLSA Provenance v1](https://slsa.dev/spec/v1.1/provenance) for build history record. |
2633+
| `BUILDKIT_INLINE_CACHE`[^2] | Bool | Inline cache metadata to image config or not. |
2634+
| `BUILDKIT_MULTI_PLATFORM` | Bool | Opt into deterministic output regardless of multi-platform output or not. |
2635+
| `BUILDKIT_SANDBOX_HOSTNAME` | String | Set the hostname (default `buildkitsandbox`) |
2636+
| `BUILDKIT_SYNTAX` | String | Set frontend image |
2637+
| `SOURCE_DATE_EPOCH` | Int | Set the Unix timestamp for created image and layers. More info from [reproducible builds](https://reproducible-builds.org/docs/source-date-epoch/). Supported since Dockerfile 1.5, BuildKit 0.11 |
26372638

26382639
#### Example: keep `.git` dir
26392640

0 commit comments

Comments
 (0)