@@ -173,6 +173,24 @@ tags:
173
173
x-displayName : " System"
174
174
175
175
definitions :
176
+ Capabilities :
177
+ description : " Represents engine capabilities"
178
+ type : " object"
179
+ properties :
180
+ _v :
181
+ description : " The version of capabilities this response represents."
182
+ type : " object"
183
+ x-nullable : false
184
+ example : 1
185
+ data :
186
+ description : " The internal representation of the advertised engine capabilities."
187
+ type : " object"
188
+ properties :
189
+ registry-client-auth :
190
+ description : " Whether the engine supports client auth handling."
191
+ type : " boolean"
192
+ x-nullable : true
193
+ example : true
176
194
Port :
177
195
type : " object"
178
196
description : " An open port on a container"
@@ -9709,6 +9727,82 @@ paths:
9709
9727
schema :
9710
9728
$ref : " #/definitions/ErrorResponse"
9711
9729
tags : ["System"]
9730
+ # Using a zero-width character here to define a separate /_ping endpoint to describe the
9731
+ # /_ping?capabilities=1 API since otherwise Swagger won't allow us to define multiple
9732
+ # responses for the same endpoint depending on query parameter.
9733
+ # This is however supported by OpenAPI v3.
9734
+ # See: https://github.com/OAI/OpenAPI-Specification/issues/146
9735
+ # and https://github.com/OAI/OpenAPI-Specification/issues/182
9736
+ /_ping :
9737
+ get :
9738
+ summary : " /_ping?capabilities=1"
9739
+ description : |
9740
+ This is the same endpoint as `GET /_ping`, but describes the different
9741
+ response when it is called with the `capabilities=1` query parameter.
9742
+
9743
+ In this case, the daemon instead responds with a `Content-Type` of
9744
+ `application/json` and writes a json represenation of the engine's
9745
+ capabilities in the response body.
9746
+ operationId : " SystemPingCapabilities"
9747
+ produces : ["application/json"]
9748
+ parameters :
9749
+ - name : " capabilities"
9750
+ in : " query"
9751
+ description : The capabilities API version being requested.
9752
+ # marked as required since this is a separate endpoint in the swagger yaml.
9753
+ required : true
9754
+ type : " string"
9755
+ enum : ["1"]
9756
+ responses :
9757
+ 200 :
9758
+ description : " no error"
9759
+ schema :
9760
+ $ref : " #/definitions/Capabilities"
9761
+ headers :
9762
+ Api-Version :
9763
+ type : " string"
9764
+ description : " Max API Version the server supports"
9765
+ Builder-Version :
9766
+ type : " string"
9767
+ description : |
9768
+ Default version of docker image builder
9769
+
9770
+ The default on Linux is version "2" (BuildKit), but the daemon
9771
+ can be configured to recommend version "1" (classic Builder).
9772
+ Windows does not yet support BuildKit for native Windows images,
9773
+ and uses "1" (classic builder) as a default.
9774
+
9775
+ This value is a recommendation as advertised by the daemon, and
9776
+ it is up to the client to choose which builder to use.
9777
+ default : " 2"
9778
+ Docker-Experimental :
9779
+ type : " boolean"
9780
+ description : " If the server is running with experimental mode enabled"
9781
+ Swarm :
9782
+ type : " string"
9783
+ enum : ["inactive", "pending", "error", "locked", "active/worker", "active/manager"]
9784
+ description : |
9785
+ Contains information about Swarm status of the daemon,
9786
+ and if the daemon is acting as a manager or worker node.
9787
+ default : " inactive"
9788
+ Cache-Control :
9789
+ type : " string"
9790
+ default : " no-cache, no-store, must-revalidate"
9791
+ Pragma :
9792
+ type : " string"
9793
+ default : " no-cache"
9794
+ 500 :
9795
+ description : " server error"
9796
+ schema :
9797
+ $ref : " #/definitions/ErrorResponse"
9798
+ headers :
9799
+ Cache-Control :
9800
+ type : " string"
9801
+ default : " no-cache, no-store, must-revalidate"
9802
+ Pragma :
9803
+ type : " string"
9804
+ default : " no-cache"
9805
+ tags : ["System"]
9712
9806
/commit :
9713
9807
post :
9714
9808
summary : " Create a new image from a container"
0 commit comments