We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae86616 commit c1ee3deCopy full SHA for c1ee3de
core/container_create.go
@@ -161,6 +161,13 @@ func (ds *dockerService) CreateContainer(
161
}
162
hc.Resources.Devices = devices
163
164
+ for _, cdiDevice := range config.CDIDevices {
165
+ hc.Resources.DeviceRequests = append(hc.Resources.DeviceRequests, container.DeviceRequest{
166
+ Driver: "cdi",
167
+ DeviceIDs: []string{cdiDevice.Name},
168
+ })
169
+ }
170
+
171
var securityOpts []string
172
if runtime.GOOS == "linux" {
173
securityContext := config.GetLinux().GetSecurityContext()
0 commit comments