Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit bf77a77

Browse files
committed
swagger: add DeviceRequests to container create, inspect example
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit d4d62b658d9a720aa43274d9d33bc3ab0b22787d) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 630185b4ae0f81f6d990fbc0e995b1b04b26208d Component: engine
1 parent d43b66d commit bf77a77

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

components/engine/api/swagger.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5221,6 +5221,14 @@ paths:
52215221
- {}
52225222
BlkioDeviceWriteIOps:
52235223
- {}
5224+
DeviceRequests:
5225+
- Driver: "nvidia"
5226+
Count: -1
5227+
DeviceIDs": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"]
5228+
Capabilities: [["gpu", "nvidia", "compute"]]
5229+
Options:
5230+
property1: "string"
5231+
property2: "string"
52245232
MemorySwappiness: 60
52255233
OomKillDisable: false
52265234
OomScoreAdj: 500
@@ -5474,6 +5482,14 @@ paths:
54745482
CpuRealtimePeriod: 1000000
54755483
CpuRealtimeRuntime: 10000
54765484
Devices: []
5485+
DeviceRequests:
5486+
- Driver: "nvidia"
5487+
Count: -1
5488+
DeviceIDs": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"]
5489+
Capabilities: [["gpu", "nvidia", "compute"]]
5490+
Options:
5491+
property1: "string"
5492+
property2: "string"
54775493
IpcMode: ""
54785494
LxcConf: []
54795495
Memory: 0

0 commit comments

Comments
 (0)