Skip to content

Commit

Permalink
Fix example of relative WORKDIR
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
  • Loading branch information
LK4D4 committed Aug 3, 2014
1 parent bec676e commit 5514afc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/sources/reference/builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 5514afc

Please sign in to comment.