From 5f0643b082d4fe5a7be9fa0a00088e3e37882824 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Fri, 29 Jan 2016 18:27:27 -0800 Subject: [PATCH] Update example request for container update in docs. Signed-off-by: Joffrey F --- docs/reference/api/docker_remote_api_v1.22.md | 24 ++++++++----------- docs/reference/api/docker_remote_api_v1.23.md | 24 ++++++++----------- 2 files changed, 20 insertions(+), 28 deletions(-) diff --git a/docs/reference/api/docker_remote_api_v1.22.md b/docs/reference/api/docker_remote_api_v1.22.md index 892ee07a03..606e0273c0 100644 --- a/docs/reference/api/docker_remote_api_v1.22.md +++ b/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 { - "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**: diff --git a/docs/reference/api/docker_remote_api_v1.23.md b/docs/reference/api/docker_remote_api_v1.23.md index 499086b2e7..2091d34121 100644 --- a/docs/reference/api/docker_remote_api_v1.23.md +++ b/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 { - "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**: