浏览代码

Merge pull request #3938 from SvenDowideit/workdir-doc-tweak

be a little more explicit about what WORKDIR does
Andy Rothfusz 11 年之前
父节点
当前提交
f9f30f1ced
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      docs/sources/reference/builder.rst

+ 5 - 3
docs/sources/reference/builder.rst

@@ -269,7 +269,7 @@ the container's filesystem at path ``<dest>``.
 source directory being built (also called the *context* of the build) or
 source directory being built (also called the *context* of the build) or
 a remote file URL.
 a remote file URL.
 
 
-``<dest>`` is the path at which the source will be copied in the
+``<dest>`` is the absolute path to which the source will be copied inside the
 destination container.
 destination container.
 
 
 All new files and directories are created with mode 0755, uid and gid
 All new files and directories are created with mode 0755, uid and gid
@@ -399,8 +399,10 @@ the image.
 
 
     ``WORKDIR /path/to/workdir``
     ``WORKDIR /path/to/workdir``
 
 
-The ``WORKDIR`` instruction sets the working directory in which
-the command given by ``CMD`` is executed.
+The ``WORKDIR`` instruction sets the working directory for the ``RUN``, ``CMD`` and
+``ENTRYPOINT``  Dockerfile commands that follow it.
+
+It can be used multiple times in the one Dockerfile.
 
 
 3.11 ONBUILD
 3.11 ONBUILD
 ------------
 ------------