From 0ddf7346b7b35fabb1c92c223bfe7bfd077c87b9 Mon Sep 17 00:00:00 2001 From: LK4D4 Date: Sun, 3 Aug 2014 12:28:25 +0400 Subject: [PATCH] Fix example of relative WORKDIR Docker-DCO-1.1-Signed-off-by: Alexandr Morozov (github: LK4D4) Upstream-commit: 83b89cd5cd1618a8188f9ebd3aa387a146abbed6 Component: cli --- components/cli/docs/sources/reference/builder.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/cli/docs/sources/reference/builder.md b/components/cli/docs/sources/reference/builder.md index 730d176efb..73f48b8248 100644 --- a/components/cli/docs/sources/reference/builder.md +++ b/components/cli/docs/sources/reference/builder.md @@ -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`.