mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon: fix bug in nvidia device registration
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
bd3d46a9e5
commit
739adb46e4
2 changed files with 3 additions and 2 deletions
|
@ -39,8 +39,8 @@ func init() {
|
|||
capset: capset,
|
||||
updateSpec: setNvidiaGPUs,
|
||||
}
|
||||
for c := range capset {
|
||||
nvidiaDriver.capset[c] = struct{}{}
|
||||
for c := range allNvidiaCaps {
|
||||
nvidiaDriver.capset[string(c)] = struct{}{}
|
||||
}
|
||||
registerDeviceDriver("nvidia", nvidiaDriver)
|
||||
}
|
||||
|
|
|
@ -19,5 +19,6 @@ anyof:
|
|||
}
|
||||
return andList
|
||||
}
|
||||
// match anything
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue