From 5c5486d910a6f2a5e013970d715cd77b92ad821c Mon Sep 17 00:00:00 2001 From: eyherabh Date: Fri, 17 Jul 2020 22:18:02 +0300 Subject: [PATCH] Replaces ADD with COPY in the COPY section Possibly a typo from reusing text from the ADD section. Signed-off-by: Hugo Gabriel Eyherabide (cherry picked from commit 86cbe28510ad7cc91694fec520ad8c33f7cd844f) Signed-off-by: Sebastiaan van Stijn --- docs/reference/builder.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/builder.md b/docs/reference/builder.md index d5a44c382b..0b025f15c6 100644 --- a/docs/reference/builder.md +++ b/docs/reference/builder.md @@ -1276,11 +1276,11 @@ COPY test.txt /absoluteDir/ When copying files or directories that contain special characters (such as `[` and `]`), you need to escape those paths following the Golang rules to prevent -them from being treated as a matching pattern. For example, to add a file +them from being treated as a matching pattern. For example, to copy a file named `arr[0].txt`, use the following; ```dockerfile -ADD arr[[]0].txt /mydir/ +COPY arr[[]0].txt /mydir/ ``` All new files and directories are created with a UID and GID of 0, unless the