Skip to content

Commit ed70bdc

Browse files
committed
feedback
1 parent 83d5132 commit ed70bdc

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

content/manuals/build/bake/targets.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,19 @@ Supported patterns:
107107
- `?` matches any single character
108108
- `[abc]` matches any character in brackets
109109

110+
> [!NOTE]
111+
>
112+
> Always wrap wildcard patterns in quotes. Without quotes, your shell will expand the
113+
> wildcard to match files in the current directory, which usually causes errors.
114+
110115
Examples:
111116

112117
```console
113118
# Match all targets starting with 'foo-'
114-
$ docker buildx bake foo-*
119+
$ docker buildx bake "foo-*"
115120

116121
# Match all targets
117-
$ docker buildx bake *
122+
$ docker buildx bake "*"
118123

119124
# Matches: foo-baz, foo-caz, foo-daz, etc.
120125
$ docker buildx bake "foo-?az"
@@ -126,10 +131,10 @@ $ docker buildx bake "[fb]oo-bar"
126131
$ docker buildx bake "mtx-a-b-*"
127132
```
128133

129-
You can also combine multiple patters:
134+
You can also combine multiple patterns:
130135

131136
```console
132-
$ docker buildx bake "*" "tests"
137+
$ docker buildx bake "foo*" "tests"
133138
```
134139

135140
## Additional resources

0 commit comments

Comments
 (0)