From 2ae640065cd6ac3e743d3915f9bc7405f8e7ebf3 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:31:25 +0200 Subject: [PATCH] build: don't specify the buildx install/uninstall commands Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- content/manuals/build/builders/_index.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/content/manuals/build/builders/_index.md b/content/manuals/build/builders/_index.md index ccb8d9a6202e..bc61ea2aaf12 100644 --- a/content/manuals/build/builders/_index.md +++ b/content/manuals/build/builders/_index.md @@ -78,27 +78,21 @@ older versions of the Docker CLI. The `docker buildx build` command, on the other hand, checks whether you've set a different builder as the default builder before it sends your build to BuildKit. -To use the `docker build` command with a non-default builder, you must either: +To use the `docker build` command with a non-default builder, you must either +specify the builder explicitly: -- Specify the builder explicitly, using the `--builder` flag or the `BUILDX_BUILDER` environment variable: +- Using the `--builder` flag: ```console - $ BUILDX_BUILDER=my_builder docker build . $ docker build --builder my_builder . ``` -- Configure Buildx as the default client by running the following command: +- Or the `BUILDX_BUILDER` environment variable: ```console - $ docker buildx install + $ BUILDX_BUILDER=my_builder docker build . ``` - This updates your [Docker CLI configuration file](/reference/cli/docker/_index.md#configuration-files) - to ensure all of your build-related commands are routed via Buildx. - - > [!TIP] - > To undo this change, run `docker buildx uninstall`. - In general, we recommend that you use the `docker buildx build` command when