File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
content/manuals/build/builders Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -78,27 +78,21 @@ older versions of the Docker CLI. The `docker buildx build` command, on the
7878other hand, checks whether you've set a different builder as the default
7979builder 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
10498In general, we recommend that you use the ` docker buildx build ` command when
You can’t perform that action at this time.
0 commit comments