mirror of https://github.com/docker/docs.git
Update documentation for docker build
This commit is contained in:
parent
12c9b9b3c9
commit
2cc22de696
|
@ -871,6 +871,7 @@ Build an image from Dockerfile via stdin
|
||||||
{{ STREAM }}
|
{{ STREAM }}
|
||||||
|
|
||||||
:query t: tag to be applied to the resulting image in case of success
|
:query t: tag to be applied to the resulting image in case of success
|
||||||
|
:query remote: URL to be fetch. Either a single Dockerfile or a Git repository
|
||||||
:statuscode 200: no error
|
:statuscode 200: no error
|
||||||
:statuscode 500: server error
|
:statuscode 500: server error
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,11 @@
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
Usage: docker build [OPTIONS] PATH | -
|
Usage: docker build [OPTIONS] PATH | URL | -
|
||||||
Build a new container image from the source code at 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.
|
-t="": Tag to be applied to the resulting image in case of success.
|
||||||
|
When a single Dockerfile is given as URL, then no context is set. When a git reppository is set as URL, the repository is used as context
|
||||||
|
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -132,6 +132,8 @@ curl was installed within the image.
|
||||||
|
|
||||||
The `ADD` instruction will insert the files from the `<src>` path of the context into `<dest>` path
|
The `ADD` instruction will insert the files from the `<src>` path of the context into `<dest>` path
|
||||||
of the container.
|
of the container.
|
||||||
|
`<src>` can be a local path or a remote file URL.
|
||||||
|
|
||||||
The context must be set in order to use this instruction. (see examples)
|
The context must be set in order to use this instruction. (see examples)
|
||||||
|
|
||||||
3. Dockerfile Examples
|
3. Dockerfile Examples
|
||||||
|
|
Loading…
Reference in New Issue