Browse code

Update swagger.yaml and api/version-history.md for DeviceCgrouprules

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>

Kenfe-Mickael Laventure authored on 2017/03/14 02:47:52
Showing 2 changed files
... ...
@@ -398,6 +398,12 @@ definitions:
398 398
         type: "array"
399 399
         items:
400 400
           $ref: "#/definitions/DeviceMapping"
401
+      DeviceCgroupRules:
402
+        description: "a list of cgroup rules to apply to the container"
403
+        type: "array"
404
+        items:
405
+          type: "string"
406
+          example: "c 13:* rwm"
401 407
       DiskQuota:
402 408
         description: "Disk limit (in bytes)."
403 409
         type: "integer"
... ...
@@ -17,6 +17,7 @@ keywords: "API, Docker, rcli, REST, documentation"
17 17
 
18 18
 [Docker Engine API v1.27](https://docs.docker.com/engine/api/v1.27/) documentation
19 19
 
20
+* `GET /containers/create` now takes a `DeviceCgroupRules` field in `HostConfig` allowing to set custom device cgroup rules for the created container.
20 21
 * 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.
21 22
 * `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.
22 23
 * `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}.