From 6e97f11df9fa695ee1739bf55ab7166934746523 Mon Sep 17 00:00:00 2001 From: Kenfe-Mickael Laventure Date: Mon, 13 Mar 2017 10:47:52 -0700 Subject: [PATCH] Update swagger.yaml and api/version-history.md for DeviceCgrouprules Signed-off-by: Kenfe-Mickael Laventure --- api/swagger.yaml | 6 ++++++ docs/api/version-history.md | 1 + 2 files changed, 7 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index 9acdaf7293..544cb767d3 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -398,6 +398,12 @@ definitions: type: "array" items: $ref: "#/definitions/DeviceMapping" + DeviceCgroupRules: + description: "a list of cgroup rules to apply to the container" + type: "array" + items: + type: "string" + example: "c 13:* rwm" DiskQuota: description: "Disk limit (in bytes)." type: "integer" diff --git a/docs/api/version-history.md b/docs/api/version-history.md index 104e94fd84..7b2467fec9 100644 --- a/docs/api/version-history.md +++ b/docs/api/version-history.md @@ -17,6 +17,7 @@ keywords: "API, Docker, rcli, REST, documentation" [Docker Engine API v1.27](https://docs.docker.com/engine/api/v1.27/) documentation +* `GET /containers/create` now takes a `DeviceCgroupRules` field in `HostConfig` allowing to set custom device cgroup rules for the created container. * Optional query parameter `verbose` for `GET /networks/(id or name)` will now list all services with all the tasks, including the non-local tasks on the given network. * `GET /containers/(id or name)/attach/ws` now returns WebSocket in binary frame format for API version >= v1.27, and returns WebSocket in text frame format for API version< v1.27, for the purpose of backward-compatibility. * `GET /networks` is optimised only to return list of all networks and network specific information. List of all containers attached to a specific network is removed from this API and is only available using the network specific `GET /networks/{network-id}.