LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-buildx-inspect

Inspect a Docker Buildx builder instance

TLDR

Inspect the current builder
$ docker buildx inspect
copy
Inspect a named builder
$ docker buildx inspect [builder_name]
copy
Start the builder if it is stopped, then inspect it
$ docker buildx inspect --bootstrap [builder_name]
copy
Wait longer for remote builder status
$ docker buildx inspect --timeout [60s] [builder_name]
copy

SYNOPSIS

docker buildx inspect [options] [name]

DESCRIPTION

docker buildx inspect prints details about the current builder, or a named builder if name is given. The report includes the builder name, driver, last activity, and each node: endpoint, driver options, status, BuildKit version, platforms, labels, and garbage-collection policy.Platforms marked with an asterisk (\*) were set explicitly with docker buildx create --platform. Unmarked platforms were detected automatically.--bootstrap is useful for docker-container builders that are not running yet. It pulls the BuildKit image if needed, creates the container, and waits until the node is up. Builds already bootstrap the same container, so this flag is only needed when you want the inspect output of a live node without running a build.

PARAMETERS

--bootstrap

Start the builder (for example the BuildKit container) and wait until it is operational before printing details.
--timeout duration
Override the default timeout for loading builder status (default: 20s).
--builder name
Target a specific builder instance (overrides the currently selected 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

A builder that is inactive or unreachable within --timeout may show incomplete status. The default docker driver has no separate BuildKit container, so --bootstrap has little effect there. docker --debug buildx inspect prints extra diagnostic fields that the default output omits.

SEE ALSO

RESOURCES

Copied to clipboard
Kai