Browse Source

Fix example of relative WORKDIR

Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
LK4D4 11 năm trước cách đây
mục cha
commit
5514afcd88
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      docs/sources/reference/builder.md

+ 4 - 1
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`
 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`.