mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix example of relative WORKDIR
Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
This commit is contained in:
parent
bec676e2de
commit
5514afcd88
1 changed files with 4 additions and 1 deletions
|
@ -444,7 +444,10 @@ It can be used multiple times in the one `Dockerfile`. If a relative path
|
|||
is provided, it will be relative to the path of the previous `WORKDIR`
|
||||
instruction. For example:
|
||||
|
||||
WORKDIR /a WORKDIR b WORKDIR c RUN pwd
|
||||
WORKDIR /a
|
||||
WORKDIR b
|
||||
WORKDIR c
|
||||
RUN pwd
|
||||
|
||||
The output of the final `pwd` command in this Dockerfile would be
|
||||
`/a/b/c`.
|
||||
|
|
Loading…
Reference in a new issue