mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
Update docker build docs
This commit is contained in:
@@ -8,32 +8,21 @@
|
||||
|
||||
::
|
||||
|
||||
Usage: docker build [CONTEXT|-]
|
||||
Build a new image from a Dockerfile
|
||||
Usage: docker build [OPTIONS] PATH | -
|
||||
Build a new container image from the source code at PATH
|
||||
-t="": Tag to be applied to the resulting image in case of success.
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
docker build
|
||||
docker build .
|
||||
|
||||
This will take the local Dockerfile without context
|
||||
This will take the local Dockerfile
|
||||
|
||||
.. 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
|
||||
|
||||
Reference in New Issue
Block a user