summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2020-07-03 15:17:17 +0200
committerSebastiaan van Stijn <github@gone.nl>2020-07-03 15:19:19 +0200
commitd4d62b658d9a720aa43274d9d33bc3ab0b22787d (patch)
tree71d84663e1d8041081cdefcda6525d852192408c
parent89876e816585d814b31a2c5c9814eeda92b081bc (diff)
downloaddocker-d4d62b658d9a720aa43274d9d33bc3ab0b22787d.tar.gz
swagger: add DeviceRequests to container create, inspect example
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
-rw-r--r--api/swagger.yaml16
1 files changed, 16 insertions, 0 deletions
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