From c937b43abd302b7643e0257a843ffda60f101fcc Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Sat, 19 Mar 2016 22:20:40 +1000 Subject: [PATCH] WORKDIR is like calling mkdir - but we've not told people Signed-off-by: Sven Dowideit --- docs/reference/builder.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/reference/builder.md b/docs/reference/builder.md index 8a01d41d52..5819ea36fd 100644 --- a/docs/reference/builder.md +++ b/docs/reference/builder.md @@ -1021,6 +1021,8 @@ and for any `RUN`, `CMD` and `ENTRYPOINT` instructions that follow it in the The `WORKDIR` instruction sets the working directory for any `RUN`, `CMD`, `ENTRYPOINT`, `COPY` and `ADD` instructions that follow it in the `Dockerfile`. +If the `WORKDIR` doesn't exist, it will be created even if its not used in any +subsequent `Dockerfile` instruction. 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`