diff options
| author | Doug Davis <dug@us.ibm.com> | 2016-01-22 08:52:36 -0800 |
|---|---|---|
| committer | Doug Davis <dug@us.ibm.com> | 2016-01-22 10:13:13 -0800 |
| commit | 8d94a85d62d6945be1217446738d856b3c2e2ddc (patch) | |
| tree | 2223f5695d8758e3ea1923361f590de14fc13c67 /docs/reference/builder.md | |
| parent | 34a83f9f2c0516b3c5e7024393487eee54309401 (diff) | |
| download | docker-8d94a85d62d6945be1217446738d856b3c2e2ddc.tar.gz | |
Add some helper text for magical ADD
Closes: #15777
Signed-off-by: Doug Davis <dug@us.ibm.com>
Diffstat (limited to 'docs/reference/builder.md')
| -rw-r--r-- | docs/reference/builder.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/reference/builder.md b/docs/reference/builder.md index 355c5e3767..8d9aeda17a 100644 --- a/docs/reference/builder.md +++ b/docs/reference/builder.md @@ -643,6 +643,14 @@ guide](../articles/dockerfile_best-practices.md#build-cache) for more informatio 2. The contents of the source tree, with conflicts resolved in favor of "2." on a file-by-file basis. + > **Note**: + > Whether a file is identified as a recognized compression format or not + > is done soley based on the contents of the file, not the name of the file. + > For example, if an empty file happens to end with `.tar.gz` this will not + > be recognized as a compressed file and **will not** generate any kind of + > decompression error message, rather the file will simply be copied to the + > destination. + - If `<src>` is any other kind of file, it is copied individually along with its metadata. In this case, if `<dest>` ends with a trailing slash `/`, it will be considered a directory and the contents of `<src>` will be written |
