Procházet zdrojové kódy

Merge pull request #18227 from thaJeztah/fix-api-changes

docs: move API changes to the correct API version
James Turnbull před 9 roky
rodič
revize
9cbfa7b00b

+ 2 - 0
docs/reference/api/docker_remote_api.md

@@ -95,6 +95,8 @@ This section lists each version from latest to oldest.  Each listing includes a
 [Docker Remote API v1.22](docker_remote_api_v1.22.md) documentation
 
 * `GET /containers/json` supports filter `isolation` on Windows.
+* `GET /info` Now returns `Architecture` and `OSType` fields, providing information
+  about the host architecture and operating system type that the daemon runs on.
 * `GET /networks/(name)` now returns a `Name` field for each container attached to the network.
 
 ### v1.21 API changes

+ 0 - 2
docs/reference/api/docker_remote_api_v1.21.md

@@ -1903,7 +1903,6 @@ Display system-wide information
     Content-Type: application/json
 
     {
-        "Architecture": "x86_64",
         "Containers": 11,
         "CpuCfsPeriod": true,
         "CpuCfsQuota": true,
@@ -1935,7 +1934,6 @@ Display system-wide information
         "Name": "prod-server-42",
         "NoProxy": "9.81.1.160",
         "OomKillDisable": true,
-        "OSType": "linux",
         "OperatingSystem": "Boot2Docker",
         "RegistryConfig": {
             "IndexConfigs": {

+ 2 - 0
docs/reference/api/docker_remote_api_v1.22.md

@@ -1907,6 +1907,7 @@ Display system-wide information
     Content-Type: application/json
 
     {
+        "Architecture": "x86_64",
         "Containers": 11,
         "CpuCfsPeriod": true,
         "CpuCfsQuota": true,
@@ -1948,6 +1949,7 @@ Display system-wide information
         "Name": "prod-server-42",
         "NoProxy": "9.81.1.160",
         "OomKillDisable": true,
+        "OSType": "linux",
         "OperatingSystem": "Boot2Docker",
         "RegistryConfig": {
             "IndexConfigs": {