mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #2994 from discordianfish/1150-build-return-exit-code
Bump api version and update docs
This commit is contained in:
commit
d4ebba703c
4 changed files with 1277 additions and 9 deletions
2
api.go
2
api.go
|
@ -26,7 +26,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
APIVERSION = 1.7
|
||||
APIVERSION = 1.8
|
||||
DEFAULTHTTPHOST = "127.0.0.1"
|
||||
DEFAULTHTTPPORT = 4243
|
||||
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
|
||||
/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
|
||||
****
|
||||
|
||||
|
@ -138,11 +156,6 @@ What's new
|
|||
This URI no longer exists. The ``images -viz`` output is now generated in
|
||||
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
|
||||
****
|
||||
|
||||
|
|
|
@ -992,9 +992,7 @@ Build an image from Dockerfile via stdin
|
|||
HTTP/1.1 200 OK
|
||||
Content-Type: application/json
|
||||
|
||||
{"status":"Step 1..."}
|
||||
{"status":"..."}
|
||||
{"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
||||
{{ STREAM }}
|
||||
|
||||
The stream must be a tar archive compressed with one of the
|
||||
following algorithms: identity (no compression), gzip, bzip2,
|
||||
|
|
1257
docs/sources/api/docker_remote_api_v1.8.rst
Normal file
1257
docs/sources/api/docker_remote_api_v1.8.rst
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue