Browse code

Merge pull request #31790 from mlaventure/devicecgrouprules-api-swagger

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

Victor Vieux authored on 2017/03/15 08:51:09
Showing 2 changed files
... ...
@@ -399,6 +399,12 @@ definitions:
399 399
         type: "array"
400 400
         items:
401 401
           $ref: "#/definitions/DeviceMapping"
402
+      DeviceCgroupRules:
403
+        description: "a list of cgroup rules to apply to the container"
404
+        type: "array"
405
+        items:
406
+          type: "string"
407
+          example: "c 13:* rwm"
402 408
       DiskQuota:
403 409
         description: "Disk limit (in bytes)."
404 410
         type: "integer"
... ...
@@ -18,6 +18,7 @@ keywords: "API, Docker, rcli, REST, documentation"
18 18
 [Docker Engine API v1.28](https://docs.docker.com/engine/api/v1.28/) documentation
19 19
 
20 20
 
21
+* `GET /containers/create` now takes a `DeviceCgroupRules` field in `HostConfig` allowing to set custom device cgroup rules for the created container.
21 22
 * 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.
22 23
 * `GET /containers/(id or name)/attach/ws` now returns WebSocket in binary frame format for API version >= v1.28, and returns WebSocket in text frame format for API version< v1.28, for the purpose of backward-compatibility.
23 24
 * `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}.