Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable formatting option while listing builder instances #1026

Open
developer-guy opened this issue Mar 24, 2022 · 2 comments
Open

enable formatting option while listing builder instances #1026

developer-guy opened this issue Mar 24, 2022 · 2 comments

Comments

@developer-guy
Copy link
Contributor

By default, when the user supplies the docker buildx ls command, the output will look like the following:

NAME/NODE       DRIVER/ENDPOINT STATUS  PLATFORMS
desktop-linux   docker                  
  desktop-linux desktop-linux   running linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
default *       docker                  
  default       default         running linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6

So to make this more modular, we can provide an additional option called --format as the imagetools command has. Also, we can get the detail of one of the builders via the `--name option.

$ docker buildx ls --name default --format={{.Platforms}}
linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
@crazy-max
Copy link
Member

Yes will revisit #830

@tonistiigi
Copy link
Member

docker buildx ls --name default --format={{.Platforms}}

This should be format on inspect, not ls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants