Procházet zdrojové kódy

Merge pull request #25657 from thaJeztah/update-image-load-api-docs

Update API docs example for image load response
Michael Crosby před 9 roky
rodič
revize
5dbdc321dc

+ 5 - 5
docs/reference/api/docker_remote_api_v1.23.md

@@ -2673,14 +2673,14 @@ See the [image tarball format](#image-tarball-format) for more details.
 **Example response**:
 **Example response**:
 
 
 If the "quiet" query parameter is set to `true` / `1` (`?quiet=1`), progress 
 If the "quiet" query parameter is set to `true` / `1` (`?quiet=1`), progress 
-details are suppressed, and only a confirmation message is returned as plain text
-once the action completes.
+details are suppressed, and only a confirmation message is returned once the
+action completes.
 
 
     HTTP/1.1 200 OK
     HTTP/1.1 200 OK
-    Content-Length: 29
-    Content-Type: text/plain; charset=utf-8
+    Content-Type: application/json
+    Transfer-Encoding: chunked
 
 
-    Loaded image: busybox:latest
+    {"stream":"Loaded image: busybox:latest\n"}
 
 
 **Query parameters**:
 **Query parameters**:
 
 

+ 5 - 5
docs/reference/api/docker_remote_api_v1.24.md

@@ -2686,14 +2686,14 @@ See the [image tarball format](#image-tarball-format) for more details.
 **Example response**:
 **Example response**:
 
 
 If the "quiet" query parameter is set to `true` / `1` (`?quiet=1`), progress 
 If the "quiet" query parameter is set to `true` / `1` (`?quiet=1`), progress 
-details are suppressed, and only a confirmation message is returned as plain text
-once the action completes.
+details are suppressed, and only a confirmation message is returned once the
+action completes.
 
 
     HTTP/1.1 200 OK
     HTTP/1.1 200 OK
-    Content-Length: 29
-    Content-Type: text/plain; charset=utf-8
+    Content-Type: application/json
+    Transfer-Encoding: chunked
 
 
-    Loaded image: busybox:latest
+    {"stream":"Loaded image: busybox:latest\n"}
 
 
 **Query parameters**:
 **Query parameters**:
 
 

+ 5 - 5
docs/reference/api/docker_remote_api_v1.25.md

@@ -2692,14 +2692,14 @@ See the [image tarball format](#image-tarball-format) for more details.
 **Example response**:
 **Example response**:
 
 
 If the "quiet" query parameter is set to `true` / `1` (`?quiet=1`), progress 
 If the "quiet" query parameter is set to `true` / `1` (`?quiet=1`), progress 
-details are suppressed, and only a confirmation message is returned as plain text
-once the action completes.
+details are suppressed, and only a confirmation message is returned once the
+action completes.
 
 
     HTTP/1.1 200 OK
     HTTP/1.1 200 OK
-    Content-Length: 29
-    Content-Type: text/plain; charset=utf-8
+    Content-Type: application/json
+    Transfer-Encoding: chunked
 
 
-    Loaded image: busybox:latest
+    {"stream":"Loaded image: busybox:latest\n"}
 
 
 **Query parameters**:
 **Query parameters**: