1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Update docker build docs

This commit is contained in:
Guillaume J. Charmes 2013-05-29 11:50:49 -07:00
parent 33ea1483d5
commit d97fff60a9
2 changed files with 37 additions and 5 deletions

View file

@ -8,6 +8,32 @@
::
Usage: docker build -
Example: cat Dockerfile | docker build -
Build a new image from the Dockerfile passed via stdin
Usage: docker build [CONTEXT|-]
Build a new image from a Dockerfile
Examples
--------
.. code-block:: bash
docker build
This will take the local Dockerfile without context
.. code-block:: bash
docker build -
This will read a Dockerfile form Stdin without context
.. code-block:: bash
docker build .
This will take the local Dockerfile and set the current directory as context
.. code-block:: bash
docker build - .
This will read a Dockerfile from Stdin and set the current directory as context

View file

@ -125,8 +125,14 @@ curl was installed within the image.
.. note::
The path must include the file name.
.. note::
This instruction has temporarily disabled
2.8 ADD
-------
``ADD <src> <dest>``
The `ADD` instruction will insert the files from the `<src>` path of the context into `<dest>` path
of the container.
The context must be set in order to use this instruction. (see examples)
3. Dockerfile Examples
======================