Merge pull request #1513 from dotcloud/add_user_dockerfile

Add USER instruction do Dockerfile
This commit is contained in:
Michael Crosby
2013-08-21 09:19:31 -07:00
3 changed files with 27 additions and 2 deletions
+11 -2
View File
@@ -205,14 +205,23 @@ to the entrypoint.
The ``VOLUME`` instruction will add one or more new volumes to any
container created from the image.
3.10 WORKDIR
--------------
3.10 USER
---------
``USER daemon``
The ``USER`` instruction sets the username or UID to use when running
the image.
3.11 WORKDIR
------------
``WORKDIR /path/to/workdir``
The ``WORKDIR`` instruction sets the working directory in which
the command given by ``CMD`` is executed.
4. Dockerfile Examples
======================