mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix formatted on build
This commit is contained in:
parent
4f5790d104
commit
e7402ed9cc
2 changed files with 36 additions and 36 deletions
|
@ -945,34 +945,34 @@ Build an image from Dockerfile via stdin
|
||||||
|
|
||||||
Build an image from Dockerfile via stdin
|
Build an image from Dockerfile via stdin
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
|
|
||||||
POST /build HTTP/1.1
|
POST /build HTTP/1.1
|
||||||
|
|
||||||
{{ STREAM }}
|
{{ STREAM }}
|
||||||
|
|
||||||
**Example response**:
|
**Example response**:
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
|
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
|
|
||||||
{{ STREAM }}
|
{{ STREAM }}
|
||||||
|
|
||||||
|
|
||||||
The stream must be a tar archive compressed with one of the following algorithms:
|
The stream must be a tar archive compressed with one of the following algorithms:
|
||||||
identity (no compression), gzip, bzip2, xz. The archive must include a file called
|
identity (no compression), gzip, bzip2, xz. The archive must include a file called
|
||||||
`Dockerfile` at its root. It may include any number of other files, which will be
|
`Dockerfile` at its root. It may include any number of other files, which will be
|
||||||
accessible in the build context (See the ADD build command).
|
accessible in the build context (See the ADD build command).
|
||||||
|
|
||||||
The Content-type header should be set to "application/tar".
|
The Content-type header should be set to "application/tar".
|
||||||
|
|
||||||
:query t: repository name (and optionally a tag) to be applied to the resulting image in case of success
|
:query t: repository name (and optionally a tag) to be applied to the resulting image in case of success
|
||||||
:query q: suppress verbose build output
|
:query q: suppress verbose build output
|
||||||
:query nocache: do not use the cache when building the image
|
:query nocache: do not use the cache when building the image
|
||||||
:statuscode 200: no error
|
:statuscode 200: no error
|
||||||
:statuscode 500: server error
|
:statuscode 500: server error
|
||||||
|
|
||||||
|
|
||||||
|
@ -1069,8 +1069,8 @@ Show the docker version information
|
||||||
"GoVersion":"go1.0.3"
|
"GoVersion":"go1.0.3"
|
||||||
}
|
}
|
||||||
|
|
||||||
:statuscode 200: no error
|
:statuscode 200: no error
|
||||||
:statuscode 500: server error
|
:statuscode 500: server error
|
||||||
|
|
||||||
|
|
||||||
Create a new image from a container's changes
|
Create a new image from a container's changes
|
||||||
|
|
|
@ -995,36 +995,36 @@ Build an image from Dockerfile via stdin
|
||||||
|
|
||||||
.. http:post:: /build
|
.. http:post:: /build
|
||||||
|
|
||||||
Build an image from Dockerfile via stdin
|
Build an image from Dockerfile via stdin
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
|
|
||||||
POST /build HTTP/1.1
|
POST /build HTTP/1.1
|
||||||
|
|
||||||
{{ STREAM }}
|
{{ STREAM }}
|
||||||
|
|
||||||
**Example response**:
|
**Example response**:
|
||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
|
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
|
|
||||||
{{ STREAM }}
|
{{ STREAM }}
|
||||||
|
|
||||||
|
|
||||||
The stream must be a tar archive compressed with one of the following algorithms:
|
The stream must be a tar archive compressed with one of the following algorithms:
|
||||||
identity (no compression), gzip, bzip2, xz. The archive must include a file called
|
identity (no compression), gzip, bzip2, xz. The archive must include a file called
|
||||||
`Dockerfile` at its root. It may include any number of other files, which will be
|
`Dockerfile` at its root. It may include any number of other files, which will be
|
||||||
accessible in the build context (See the ADD build command).
|
accessible in the build context (See the ADD build command).
|
||||||
|
|
||||||
The Content-type header should be set to "application/tar".
|
The Content-type header should be set to "application/tar".
|
||||||
|
|
||||||
:query t: repository name (and optionally a tag) to be applied to the resulting image in case of success
|
:query t: repository name (and optionally a tag) to be applied to the resulting image in case of success
|
||||||
:query q: suppress verbose build output
|
:query q: suppress verbose build output
|
||||||
:query nocache: do not use the cache when building the image
|
:query nocache: do not use the cache when building the image
|
||||||
:statuscode 200: no error
|
:statuscode 200: no error
|
||||||
:statuscode 500: server error
|
:statuscode 500: server error
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue