Quellcode durchsuchen

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

Update swagger.yaml and api/version-history.md for DeviceCgrouprules
Victor Vieux vor 8 Jahren
Ursprung
Commit
cec9594947
2 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  1. 6 0
      api/swagger.yaml
  2. 1 0
      docs/api/version-history.md

+ 6 - 0
api/swagger.yaml

@@ -399,6 +399,12 @@ definitions:
         type: "array"
         type: "array"
         items:
         items:
           $ref: "#/definitions/DeviceMapping"
           $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:
       DiskQuota:
         description: "Disk limit (in bytes)."
         description: "Disk limit (in bytes)."
         type: "integer"
         type: "integer"

+ 1 - 0
docs/api/version-history.md

@@ -18,6 +18,7 @@ keywords: "API, Docker, rcli, REST, documentation"
 [Docker Engine API v1.28](https://docs.docker.com/engine/api/v1.28/) documentation
 [Docker Engine API v1.28](https://docs.docker.com/engine/api/v1.28/) 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.
 * 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.28, and returns WebSocket in text frame format for API version< v1.28, for the purpose of backward-compatibility.
 * `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.
 * `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}.
 * `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}.