summaryrefslogtreecommitdiff
path: root/docs/reference/builder.md
diff options
context:
space:
mode:
authorDoug Davis <dug@us.ibm.com>2015-10-14 14:42:21 -0700
committerDoug Davis <dug@us.ibm.com>2015-11-13 13:44:07 -0800
commiteddb14a44eb3ca6ba0b5e6906e21d767eba1af86 (patch)
treef1f18ee38bc9cade8d1afffc9faa7a740fd5ae9d /docs/reference/builder.md
parent7de2b49ac86cf92fd2af34f671503118c3cc8b16 (diff)
downloaddocker-eddb14a44eb3ca6ba0b5e6906e21d767eba1af86.tar.gz
Support multi-dir wildcards in .dockerignore
Closes #13113 Signed-off-by: Doug Davis <dug@us.ibm.com>
Diffstat (limited to 'docs/reference/builder.md')
-rw-r--r--docs/reference/builder.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/reference/builder.md b/docs/reference/builder.md
index b1ed35ded2..a0e313da77 100644
--- a/docs/reference/builder.md
+++ b/docs/reference/builder.md
@@ -232,6 +232,11 @@ eliminates `.` and `..` elements using Go's
[filepath.Clean](http://golang.org/pkg/path/filepath/#Clean). Lines
that are blank after preprocessing are ignored.
+Beyond Go's filepath.Match rules, Docker also supports a special
+wildcard string `**` that matches any number of directories (including
+zero). For example, `**/*.go` will exclude all files that end with `.go`
+that are found in all directories, including the root of the build context.
+
Lines starting with `!` (exclamation mark) can be used to make exceptions
to exclusions. The following is an example `.dockerignore` file that
uses this mechanism: