瀏覽代碼

Merge pull request #7391 from LK4D4/fix_relative_workdir_example

Fix example of relative WORKDIR
James Turnbull 11 年之前
父節點
當前提交
d48492a12e
共有 1 個文件被更改,包括 4 次插入1 次删除
  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`
 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`.