mirror of https://github.com/docker/docs.git
Merge pull request #7391 from LK4D4/fix_relative_workdir_example
Fix example of relative WORKDIR
This commit is contained in:
commit
d48492a12e
|
@ -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`
|
is provided, it will be relative to the path of the previous `WORKDIR`
|
||||||
instruction. For example:
|
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
|
The output of the final `pwd` command in this Dockerfile would be
|
||||||
`/a/b/c`.
|
`/a/b/c`.
|
||||||
|
|
Loading…
Reference in New Issue