Skip to content

Commit b94b6b7

Browse files
authored
Merge pull request #23572 from crazy-max/build-cmd-update
build: don't specify the buildx install/uninstall commands
2 parents bd542ff + 2ae6400 commit b94b6b7

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

content/manuals/build/builders/_index.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,21 @@ older versions of the Docker CLI. The `docker buildx build` command, on the
7878
other hand, checks whether you've set a different builder as the default
7979
builder before it sends your build to BuildKit.
8080

81-
To use the `docker build` command with a non-default builder, you must either:
81+
To use the `docker build` command with a non-default builder, you must either
82+
specify the builder explicitly:
8283

83-
- Specify the builder explicitly, using the `--builder` flag or the `BUILDX_BUILDER` environment variable:
84+
- Using the `--builder` flag:
8485

8586
```console
86-
$ BUILDX_BUILDER=my_builder docker build .
8787
$ docker build --builder my_builder .
8888
```
8989

90-
- Configure Buildx as the default client by running the following command:
90+
- Or the `BUILDX_BUILDER` environment variable:
9191

9292
```console
93-
$ docker buildx install
93+
$ BUILDX_BUILDER=my_builder docker build .
9494
```
9595

96-
This updates your [Docker CLI configuration file](/reference/cli/docker/_index.md#configuration-files)
97-
to ensure all of your build-related commands are routed via Buildx.
98-
99-
> [!TIP]
100-
> To undo this change, run `docker buildx uninstall`.
101-
10296
<!-- vale Docker.We = NO -->
10397

10498
In general, we recommend that you use the `docker buildx build` command when

0 commit comments

Comments
 (0)