LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-buildx-use

Set the current Docker Buildx builder instance

TLDR

Switch to a named builder
$ docker buildx use [builder_name]
copy
Use a Docker context's default builder
$ docker buildx use [context_name]
copy
Make the builder the default for the current context
$ docker buildx use --default [builder_name]
copy
Keep the builder selected across context switches
$ docker buildx use --global [builder_name]
copy

SYNOPSIS

docker buildx use [options] name

DESCRIPTION

docker buildx use selects which builder later docker buildx build commands run on. name is a builder from docker buildx ls, or a Docker context name to switch to that context's default builder.Without --global, the selection is tied to the current Docker context: changing context with docker context use can change the active builder. --global keeps the same builder after context switches. --default records the builder as the default for the current context.The BUILDX_BUILDER environment variable and the --builder flag override the selected builder for a single command without changing the stored default.

PARAMETERS

--default

Set this builder as the default for the current Docker context.
--global
Persist the selection so it survives Docker context changes.
--builder name
Override the configured builder for this invocation (same as docker buildx --builder).

INSTALL

sudo apt install docker-cli
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

CAVEATS

docker buildx use only changes the default for docker buildx build. Plain docker build still uses the default builder unless you pass --builder or run docker buildx install so docker build is aliased to Buildx. The selected builder must already exist; this command does not create one.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
277 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid