Skip to content

With buildx create, how do you check if a builder already exists? #1319

Answered by jedevc
NiklasBr asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the docker buildx inspect command:

e.g.

$ docker buildx inspect default
Name:   default
Driver: docker

Nodes:
Name:      default
Endpoint:  desktop-linux
Status:    running
Buildkit:  20.10.17
Platforms: linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6

$ buildx inspect non-existent
ERROR: no builder "non-existent" found

If the builder cannot be found, then the return value of the command will a non-zero exit code.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thompson-shaun
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants