mirror of https://github.com/docker/docs.git
Merge pull request #2994 from discordianfish/1150-build-return-exit-code
Bump api version and update docs
This commit is contained in:
commit
d4ebba703c
2
api.go
2
api.go
|
@ -26,7 +26,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
APIVERSION = 1.7
|
APIVERSION = 1.8
|
||||||
DEFAULTHTTPHOST = "127.0.0.1"
|
DEFAULTHTTPHOST = "127.0.0.1"
|
||||||
DEFAULTHTTPPORT = 4243
|
DEFAULTHTTPPORT = 4243
|
||||||
DEFAULTUNIXSOCKET = "/var/run/docker.sock"
|
DEFAULTUNIXSOCKET = "/var/run/docker.sock"
|
||||||
|
|
|
@ -34,6 +34,24 @@ Calling /images/<name>/insert is the same as calling
|
||||||
You can still call an old version of the api using
|
You can still call an old version of the api using
|
||||||
/v1.0/images/<name>/insert
|
/v1.0/images/<name>/insert
|
||||||
|
|
||||||
|
|
||||||
|
v1.8
|
||||||
|
****
|
||||||
|
|
||||||
|
Full Documentation
|
||||||
|
------------------
|
||||||
|
|
||||||
|
:doc:`docker_remote_api_v1.8`
|
||||||
|
|
||||||
|
What's new
|
||||||
|
----------
|
||||||
|
|
||||||
|
.. http:post:: /build
|
||||||
|
|
||||||
|
**New!** This endpoint now returns build status as json stream. In case
|
||||||
|
of a build error, it returns the exit status of the failed command.
|
||||||
|
|
||||||
|
|
||||||
v1.7
|
v1.7
|
||||||
****
|
****
|
||||||
|
|
||||||
|
@ -138,11 +156,6 @@ What's new
|
||||||
This URI no longer exists. The ``images -viz`` output is now generated in
|
This URI no longer exists. The ``images -viz`` output is now generated in
|
||||||
the client, using the ``/images/json`` data.
|
the client, using the ``/images/json`` data.
|
||||||
|
|
||||||
.. http:post:: /build
|
|
||||||
|
|
||||||
**New!** This endpoint now returns build status as json stream. In case
|
|
||||||
of a build error, it returns the exit status of the failed command.
|
|
||||||
|
|
||||||
v1.6
|
v1.6
|
||||||
****
|
****
|
||||||
|
|
||||||
|
|
|
@ -992,9 +992,7 @@ Build an image from Dockerfile via stdin
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{"status":"Step 1..."}
|
{{ STREAM }}
|
||||||
{"status":"..."}
|
|
||||||
{"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
||||||
|
|
||||||
The stream must be a tar archive compressed with one of the
|
The stream must be a tar archive compressed with one of the
|
||||||
following algorithms: identity (no compression), gzip, bzip2,
|
following algorithms: identity (no compression), gzip, bzip2,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue