buildx/docs/reference/buildx_use.md
Sebastiaan van Stijn 1a8af33ff6
docs: standardize format for usage
Use the usage output of `--help` for each subcommand, to make
sure all flags/options are included on the page, and to make
it easier to keep docs in sync.

Note that the usage output is only used when reading these
docs on GitHub; docs.docker.com only consumes the "description"
and "example" sections (when present), and generates flag information
and usage output from source

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-03-25 00:37:57 +01:00

522 B

buildx use

Usage:  docker buildx use [OPTIONS] NAME

Set the current builder instance

Options:
      --builder string   Override the configured builder instance
      --default          Set builder as default for current context
      --global           Builder persists context changes

Description

Switches the current builder instance. Build commands invoked after this command will run on a specified builder. Alternatively, a context name can be used to switch to the default builder of that context.