瀏覽代碼

Merge pull request #19846 from shin-/remote_api_container_update_doc

Update example request for container update in docs.
Sebastiaan van Stijn 9 年之前
父節點
當前提交
d069e8e7b7
共有 2 個文件被更改,包括 20 次插入28 次删除
  1. 10 14
      docs/reference/api/docker_remote_api_v1.22.md
  2. 10 14
      docs/reference/api/docker_remote_api_v1.23.md

+ 10 - 14
docs/reference/api/docker_remote_api_v1.22.md

@@ -1034,20 +1034,16 @@ Update resource configs of one or more containers.
        Content-Type: application/json
        Content-Type: application/json
 
 
        {
        {
-           "UpdateConfig": {
-               "Resources": {
-                   "BlkioWeight": 300,
-                   "CpuShares": 512,
-                   "CpuPeriod": 100000,
-                   "CpuQuota": 50000,
-                   "CpusetCpus": "0,1",
-                   "CpusetMems": "0",
-                   "Memory": 314572800,
-                   "MemorySwap": 514288000,
-                   "MemoryReservation": 209715200,
-                   "KernelMemory": 52428800,
-               }
-           }
+         "BlkioWeight": 300,
+         "CpuShares": 512,
+         "CpuPeriod": 100000,
+         "CpuQuota": 50000,
+         "CpusetCpus": "0,1",
+         "CpusetMems": "0",
+         "Memory": 314572800,
+         "MemorySwap": 514288000,
+         "MemoryReservation": 209715200,
+         "KernelMemory": 52428800,
        }
        }
 
 
 **Example response**:
 **Example response**:

+ 10 - 14
docs/reference/api/docker_remote_api_v1.23.md

@@ -1034,20 +1034,16 @@ Update resource configs of one or more containers.
        Content-Type: application/json
        Content-Type: application/json
 
 
        {
        {
-           "UpdateConfig": {
-               "Resources": {
-                   "BlkioWeight": 300,
-                   "CpuShares": 512,
-                   "CpuPeriod": 100000,
-                   "CpuQuota": 50000,
-                   "CpusetCpus": "0,1",
-                   "CpusetMems": "0",
-                   "Memory": 314572800,
-                   "MemorySwap": 514288000,
-                   "MemoryReservation": 209715200,
-                   "KernelMemory": 52428800,
-               }
-           }
+         "BlkioWeight": 300,
+         "CpuShares": 512,
+         "CpuPeriod": 100000,
+         "CpuQuota": 50000,
+         "CpusetCpus": "0,1",
+         "CpusetMems": "0",
+         "Memory": 314572800,
+         "MemorySwap": 514288000,
+         "MemoryReservation": 209715200,
+         "KernelMemory": 52428800,
        }
        }
 
 
 **Example response**:
 **Example response**: