mirror of https://github.com/docker/docs.git
be a little more explicit about what WORKDIR does
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
This commit is contained in:
parent
501d0499f8
commit
a17d7d9a73
|
@ -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 ``WORKDIR`` instruction sets the working directory for the ``RUN``, ``CMD`` and
|
||||||
the command given by ``CMD`` is executed.
|
``ENTRYPOINT`` Dockerfile commands that follow it.
|
||||||
|
|
||||||
|
It can be used multiple times in the one Dockerfile.
|
||||||
|
|
||||||
3.11 ONBUILD
|
3.11 ONBUILD
|
||||||
------------
|
------------
|
||||||
|
|
Loading…
Reference in New Issue