File tree Expand file tree Collapse file tree
content/manuals/build/bake Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
110115Examples:
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
You can’t perform that action at this time.
0 commit comments