Fix example of relative WORKDIR

Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
Upstream-commit: 5514afcd88d40a7a9321a966292e9f724eeafc36
Component: engine
This commit is contained in:
LK4D4
2014-08-03 12:28:25 +04:00
parent 4ea9dad144
commit 7751a70b6e

View File

@ -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`.