buildx inspect
The buildx inspect
command is used to inspect a builder instance.
Usage:
buildx inspect [OPTIONS] BUILDER
Options:
Option | Description |
---|---|
-f, --filter |
Filter output based on conditions. https://docs.docker.com/engine/reference/commandline/filter/ |
--format |
Format the output using the given Go template. https://golang.org/pkg/text/template/ |
-q, --quiet |
Only display the builder ID. |
Examples:
- Inspect a builder instance by its name:
buildx inspect my-builder
- Inspect a builder instance by its ID:
buildx inspect 0123456789abcdef0123456789abcdef
- Filter the output to only include the builder’s name:
buildx inspect --filter name=my-builder
- Format the output as JSON:
buildx inspect --format '{{json .}}'
- Display only the builder ID:
buildx inspect --quiet
Source: cmd/buildx/commands/inspect.go