mirror of https://github.com/docker/docs.git
add docs for the new json format
This commit is contained in:
parent
a8e99d9235
commit
f95f2789f2
|
@ -55,6 +55,13 @@ What's new
|
||||||
|
|
||||||
**New!** This endpoint now returns the host config for the container.
|
**New!** This endpoint now returns the host config for the container.
|
||||||
|
|
||||||
|
.. http:post:: /images/create
|
||||||
|
.. http:post:: /images/(name)/insert
|
||||||
|
.. http:post:: /images/(name)/push
|
||||||
|
|
||||||
|
**New!** progressDetail object was added in the JSON. It's now possible
|
||||||
|
to get the current value and the total of the progress without having to
|
||||||
|
parse the string.
|
||||||
|
|
||||||
v1.7
|
v1.7
|
||||||
****
|
****
|
||||||
|
|
|
@ -696,7 +696,7 @@ Create an image
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{"status":"Pulling..."}
|
{"status":"Pulling..."}
|
||||||
{"status":"Pulling", "progress":"1/? (n/a)"}
|
{"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
||||||
{"error":"Invalid..."}
|
{"error":"Invalid..."}
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -736,7 +736,7 @@ Insert a file in an image
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{"status":"Inserting..."}
|
{"status":"Inserting..."}
|
||||||
{"status":"Inserting", "progress":"1/? (n/a)"}
|
{"status":"Inserting", "progress":"1/? (n/a)", "progressDetail":{"current":1}}
|
||||||
{"error":"Invalid..."}
|
{"error":"Invalid..."}
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -857,7 +857,7 @@ Push an image on the registry
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{"status":"Pushing..."}
|
{"status":"Pushing..."}
|
||||||
{"status":"Pushing", "progress":"1/? (n/a)"}
|
{"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
||||||
{"error":"Invalid..."}
|
{"error":"Invalid..."}
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue