Skip to content

Conversation

aevesdocker
Copy link
Contributor

Description

Adds docker/buildx#3280

Related issues or tickets

Reviews

  • Technical review
  • Editorial review
  • Product review

Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit ed70bdc
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/68beab7dd74cf70008bc953e
😎 Deploy Preview https://deploy-preview-23360--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the area/build Relates to Dockerfiles or docker build command label Sep 4, 2025
Comment on lines 113 to 117
# Match all targets starting with 'foo-'
$ docker buildx bake foo-*

# Match all targets
$ docker buildx bake *
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably call out that the value must be quoted to prevent the user's shell from expanding. Without quotes, the shell will expand to files in the current directory, which will fail in most cases, e.g.;

docker buildx bake *
[+] Building 0.0s (1/1) FINISHED                                                                                docker:desktop-linux
 => [internal] load local bake definitions                                                                                      0.0s
 => => reading docker-bake.hcl 4.02kB / 4.02kB                                                                                  0.0s
ERROR: failed to find target api

Copy link
Member

@crazy-max crazy-max Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes should be quoted, a note would be good to explain this

$ docker buildx bake "mtx-a-b-*"
```

You can also combine multiple patters:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can also combine multiple patters:
You can also combine multiple patterns:

You can also combine multiple patters:

```console
$ docker buildx bake "*" "tests"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests would not be necessary here as we glob everything already. Maybe instead:

Suggested change
$ docker buildx bake "*" "tests"
$ docker buildx bake "foo*" "tests"


```console
# Match all targets starting with 'foo-'
$ docker buildx bake foo-*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$ docker buildx bake foo-*
$ docker buildx bake "foo-*"

$ docker buildx bake foo-*

# Match all targets
$ docker buildx bake *
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$ docker buildx bake *
$ docker buildx bake "*"

Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@aevesdocker aevesdocker merged commit 167c4fa into docker:main Sep 8, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Relates to Dockerfiles or docker build command status/review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants