Support whitespaces in ADD and COPY continued

Add tests and documentation for this new feature.

Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
Upstream-commit: 776f4e478e
Component: cli
This commit is contained in:
Arnaud Porterie
2014-12-26 16:30:34 -08:00
committed by Tibor Vass
parent 686c224963
commit 88a2eb4a22

View File

@ -388,7 +388,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>`.
@ -488,7 +492,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>`.