Skip to content

Commit aa36c48

Browse files
committed
dockerfile: docs for BUILDKIT_BUILD_NAME built-in build-arg
Signed-off-by: CrazyMax <[email protected]>
1 parent 0396f3e commit aa36c48

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
@@ -2608,16 +2608,17 @@ RUN echo "I'm building for $TARGETPLATFORM"
26082608

26092609
### BuildKit built-in build args
26102610

2611-
| Arg | Type | Description |
2612-
|----------------------------------|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
2613-
| `BUILDKIT_CACHE_MOUNT_NS` | String | Set optional cache ID namespace. |
2614-
| `BUILDKIT_CONTEXT_KEEP_GIT_DIR` | Bool | Trigger Git context to keep the `.git` directory. |
2615-
| `BUILDKIT_HISTORY_PROVENANCE_V1` | Bool | Enable [SLSA Provenance v1](https://slsa.dev/spec/v1.1/provenance) for build history record. |
2616-
| `BUILDKIT_INLINE_CACHE`[^2] | Bool | Inline cache metadata to image config or not. |
2617-
| `BUILDKIT_MULTI_PLATFORM` | Bool | Opt into deterministic output regardless of multi-platform output or not. |
2618-
| `BUILDKIT_SANDBOX_HOSTNAME` | String | Set the hostname (default `buildkitsandbox`) |
2619-
| `BUILDKIT_SYNTAX` | String | Set frontend image |
2620-
| `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 |
2611+
| Arg | Type | Description |
2612+
|----------------------------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
2613+
| `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/). |
2614+
| `BUILDKIT_CACHE_MOUNT_NS` | String | Set optional cache ID namespace. |
2615+
| `BUILDKIT_CONTEXT_KEEP_GIT_DIR` | Bool | Trigger Git context to keep the `.git` directory. |
2616+
| `BUILDKIT_HISTORY_PROVENANCE_V1` | Bool | Enable [SLSA Provenance v1](https://slsa.dev/spec/v1.1/provenance) for build history record. |
2617+
| `BUILDKIT_INLINE_CACHE`[^2] | Bool | Inline cache metadata to image config or not. |
2618+
| `BUILDKIT_MULTI_PLATFORM` | Bool | Opt into deterministic output regardless of multi-platform output or not. |
2619+
| `BUILDKIT_SANDBOX_HOSTNAME` | String | Set the hostname (default `buildkitsandbox`) |
2620+
| `BUILDKIT_SYNTAX` | String | Set frontend image |
2621+
| `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 |
26212622

26222623
#### Example: keep `.git` dir
26232624

0 commit comments

Comments
 (0)