From d4d62b658d9a720aa43274d9d33bc3ab0b22787d Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 3 Jul 2020 15:17:17 +0200 Subject: [PATCH] swagger: add DeviceRequests to container create, inspect example Signed-off-by: Sebastiaan van Stijn --- api/swagger.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index 6f87528ea0..97e80bd6db 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -5332,6 +5332,14 @@ paths: - {} BlkioDeviceWriteIOps: - {} + DeviceRequests: + - Driver: "nvidia" + Count: -1 + DeviceIDs": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"] + Capabilities: [["gpu", "nvidia", "compute"]] + Options: + property1: "string" + property2: "string" MemorySwappiness: 60 OomKillDisable: false OomScoreAdj: 500 @@ -5582,6 +5590,14 @@ paths: CpuRealtimePeriod: 1000000 CpuRealtimeRuntime: 10000 Devices: [] + DeviceRequests: + - Driver: "nvidia" + Count: -1 + DeviceIDs": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"] + Capabilities: [["gpu", "nvidia", "compute"]] + Options: + property1: "string" + property2: "string" IpcMode: "" LxcConf: [] Memory: 0