Support whitespaces in ADD and COPY continued

Add tests and documentation for this new feature.

Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
This commit is contained in:
Arnaud Porterie
2015-01-13 11:34:15 -08:00
parent abfb713887
commit cf455017e0
3 changed files with 99 additions and 14 deletions
+10 -2
View File
@@ -381,7 +381,11 @@ change them using `docker run --env <key>=<value>`.
## ADD
ADD <src>... <dest>
ADD has two forms:
- `ADD <src>... <dest>`
- `ADD ["<src>"... "<dest>"]` (this form is required for paths containing
whitespace)
The `ADD` instruction copies new files, directories or remote file URLs from `<src>`
and adds them to the filesystem of the container at the path `<dest>`.
@@ -481,7 +485,11 @@ The copy obeys the following rules:
## COPY
COPY <src>... <dest>
COPY has two forms:
- `COPY <src>... <dest>`
- `COPY ["<src>"... "<dest>"]` (this form is required for paths containing
whitespace)
The `COPY` instruction copies new files or directories from `<src>`
and adds them to the filesystem of the container at the path `<dest>`.