mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #20373 from bastiaanb/fix/docs-trailing-slash-in-dockerfile-copy-example
add missing trailing slash in ADD and COPY /absoluteDir examples.
This commit is contained in:
commit
c66d9f5627
1 changed files with 2 additions and 2 deletions
|
@ -579,7 +579,7 @@ The `<dest>` is an absolute path, or a path relative to `WORKDIR`, into which
|
||||||
the source will be copied inside the destination container.
|
the source will be copied inside the destination container.
|
||||||
|
|
||||||
ADD test relativeDir/ # adds "test" to `WORKDIR`/relativeDir/
|
ADD test relativeDir/ # adds "test" to `WORKDIR`/relativeDir/
|
||||||
ADD test /absoluteDir # adds "test" to /absoluteDir
|
ADD test /absoluteDir/ # adds "test" to /absoluteDir/
|
||||||
|
|
||||||
All new files and directories are created with a UID and GID of 0.
|
All new files and directories are created with a UID and GID of 0.
|
||||||
|
|
||||||
|
@ -691,7 +691,7 @@ The `<dest>` is an absolute path, or a path relative to `WORKDIR`, into which
|
||||||
the source will be copied inside the destination container.
|
the source will be copied inside the destination container.
|
||||||
|
|
||||||
COPY test relativeDir/ # adds "test" to `WORKDIR`/relativeDir/
|
COPY test relativeDir/ # adds "test" to `WORKDIR`/relativeDir/
|
||||||
COPY test /absoluteDir # adds "test" to /absoluteDir
|
COPY test /absoluteDir/ # adds "test" to /absoluteDir/
|
||||||
|
|
||||||
All new files and directories are created with a UID and GID of 0.
|
All new files and directories are created with a UID and GID of 0.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue