Skip to content

Update buildx reference to v0.25.0 #22858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions _vendor/github.com/docker/buildx/docs/bake-reference.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions _vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# github.com/moby/moby v28.2.1+incompatible
# github.com/moby/buildkit v0.22.0
# github.com/docker/buildx v0.24.0
# github.com/moby/buildkit v0.23.0
# github.com/docker/buildx v0.25.0
# github.com/docker/cli v28.2.2+incompatible
# github.com/docker/compose/v2 v2.37.1
# github.com/docker/model-cli v0.1.26-0.20250527144806-15d0078a3c01
Expand Down
12 changes: 8 additions & 4 deletions data/buildx/docker_buildx_bake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,15 @@ examples: |-

```console
$ docker buildx bake --list=variables
VARIABLE VALUE DESCRIPTION
REGISTRY docker.io/username Registry and namespace
IMAGE_NAME my-app Image name
GO_VERSION <null>
VARIABLE TYPE VALUE DESCRIPTION
REGISTRY string docker.io/username Registry and namespace
IMAGE_NAME string my-app Image name
GO_VERSION <null>
DEBUG bool false Add debug symbols
```

Variable types will be shown when set using the `type` property in the Bake file.

By default, the output of `docker buildx bake --list` is presented in a table
format. Alternatively, you can use a long-form CSV syntax and specify a
`format` attribute to output the list in JSON.
Expand Down Expand Up @@ -531,6 +534,7 @@ examples: |-
* `context`
* `dockerfile`
* `entitlements`
* `extra-hosts`
* `labels`
* `load`
* `no-cache`
Expand Down
28 changes: 21 additions & 7 deletions data/buildx/docker_buildx_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -703,13 +703,15 @@ examples: |-
Define additional build context with specified contents. In Dockerfile the context can be accessed when `FROM name` or `--from=name` is used.
When Dockerfile defines a stage with the same name it is overwritten.

The value can be a local source directory, [local OCI layout compliant directory](https://github.com/opencontainers/image-spec/blob/main/image-layout.md), container image (with docker-image:// prefix), Git or HTTP URL.
The value can be a:

Replace `alpine:latest` with a pinned one:
- local source directory
- [local OCI layout compliant directory](https://github.com/opencontainers/image-spec/blob/main/image-layout.md)
- container image
- Git URL
- HTTP URL

```console
$ docker buildx build --build-context alpine=docker-image://alpine@sha256:0123456789 .
```
#### Use a local path {#local-path}

Expose a secondary local source directory:

Expand All @@ -718,6 +720,16 @@ examples: |-
# docker buildx build --build-context project=https://github.com/myuser/project.git .
```

#### Use a container image {#docker-image}

Use the `docker-image://` scheme.

Replace `alpine:latest` with a pinned one:

```console
$ docker buildx build --build-context alpine=docker-image://alpine@sha256:0123456789 .
```

```dockerfile
# syntax=docker/dockerfile:1
FROM alpine
Expand All @@ -726,7 +738,10 @@ examples: |-

#### Use an OCI layout directory as build context {#source-oci-layout}

Source an image from a local [OCI layout compliant directory](https://github.com/opencontainers/image-spec/blob/main/image-layout.md),
Use the `oci-layout:///` scheme.

Source an image from a local
[OCI layout compliant directory](https://github.com/opencontainers/image-spec/blob/main/image-layout.md),
either by tag, or by digest:

```console
Expand All @@ -744,7 +759,6 @@ examples: |-
```

The OCI layout directory must be compliant with the [OCI layout specification](https://github.com/opencontainers/image-spec/blob/main/image-layout.md).
You can reference an image in the layout using either tags, or the exact digest.

### Override the configured builder instance (--builder) {#builder}

Expand Down
1 change: 0 additions & 1 deletion data/buildx/docker_buildx_debug.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
command: docker buildx debug
short: Start debugger
long: Start debugger
usage: docker buildx debug
pname: docker buildx
plink: docker_buildx.yaml
cname:
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module github.com/docker/docs
go 1.24.0

require (
github.com/docker/buildx v0.24.0 // indirect
github.com/docker/buildx v0.25.0 // indirect
github.com/docker/cli v28.2.2+incompatible // indirect
github.com/docker/compose/v2 v2.37.1 // indirect
github.com/docker/model-cli v0.1.26-0.20250527144806-15d0078a3c01 // indirect
github.com/docker/scout-cli v1.15.0 // indirect
github.com/moby/buildkit v0.22.0 // indirect
github.com/moby/buildkit v0.23.0 // indirect
github.com/moby/moby v28.2.1+incompatible // indirect
)

replace (
github.com/docker/buildx => github.com/docker/buildx v0.24.0
github.com/docker/buildx => github.com/docker/buildx v0.25.0
github.com/docker/cli => github.com/docker/cli v28.2.1+incompatible
github.com/docker/compose/v2 => github.com/docker/compose/v2 v2.37.1
github.com/docker/model-cli => github.com/docker/model-cli v0.1.26-0.20250527144806-15d0078a3c01
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5Qvfr
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
github.com/docker/buildx v0.24.0 h1:qiD+xktY+Fs3R79oz8M+7pbhip78qGLx6LBuVmyb+64=
github.com/docker/buildx v0.24.0/go.mod h1:vYkdBUBjFo/i5vUE0mkajGlk03gE0T/HaGXXhgIxo8E=
github.com/docker/buildx v0.25.0 h1:qs5WxBo0wQKSXcQ+v6UhWaeM2Pu+95ZCymaimRzInaE=
github.com/docker/buildx v0.25.0/go.mod h1:xJcOeBhz49tgqN174MMGuOU4bxNmgfaLnZn7Gm641EE=
github.com/docker/cli v28.2.1+incompatible h1:AYyTcuwvhl9dXdyCiXlOGXiIqSNYzTmaDNpxIISPGsM=
github.com/docker/cli v28.2.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
github.com/docker/compose/v2 v2.36.2 h1:rxk1PUUbhbAS6HkGsYo9xUmMBpKtVwFMNCQjE4+i5fk=
Expand Down