Browse Source

swagger: add DeviceRequests to container create, inspect example

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 years ago
parent
commit
d4d62b658d
1 changed files with 16 additions and 0 deletions
  1. 16 0
      api/swagger.yaml

+ 16 - 0
api/swagger.yaml

@@ -5332,6 +5332,14 @@ paths:
                   - {}
                   - {}
                 BlkioDeviceWriteIOps:
                 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
                 MemorySwappiness: 60
                 OomKillDisable: false
                 OomKillDisable: false
                 OomScoreAdj: 500
                 OomScoreAdj: 500
@@ -5582,6 +5590,14 @@ paths:
                 CpuRealtimePeriod: 1000000
                 CpuRealtimePeriod: 1000000
                 CpuRealtimeRuntime: 10000
                 CpuRealtimeRuntime: 10000
                 Devices: []
                 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: ""
                 IpcMode: ""
                 LxcConf: []
                 LxcConf: []
                 Memory: 0
                 Memory: 0