Merge pull request #1124 from crosbymichael/buildfile-volumes

+ Builder: Add VOLUME instruction to buildfile
This commit is contained in:
Guillaume J. Charmes
2013-07-11 17:16:57 -07:00
4 changed files with 76 additions and 0 deletions
+7
View File
@@ -160,6 +160,13 @@ files and directories are created with mode 0700, uid and gid 0.
The `ENTRYPOINT` instruction adds an entry command that will not be overwritten when arguments are passed to docker run, unlike the behavior of `CMD`. This allows arguments to be passed to the entrypoint. i.e. `docker run <image> -d` will pass the "-d" argument to the entrypoint.
2.9 VOLUME
----------
``VOLUME ["/data"]``
The `VOLUME` instruction will add one or more new volumes to any container created from the image.
3. Dockerfile Examples
======================