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,
|
capset: capset,
|
||||||
updateSpec: setNvidiaGPUs,
|
updateSpec: setNvidiaGPUs,
|
||||||
}
|
}
|
||||||
for c := range capset {
|
for c := range allNvidiaCaps {
|
||||||
nvidiaDriver.capset[c] = struct{}{}
|
nvidiaDriver.capset[string(c)] = struct{}{}
|
||||||
}
|
}
|
||||||
registerDeviceDriver("nvidia", nvidiaDriver)
|
registerDeviceDriver("nvidia", nvidiaDriver)
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,5 +19,6 @@ anyof:
|
||||||
}
|
}
|
||||||
return andList
|
return andList
|
||||||
}
|
}
|
||||||
|
// match anything
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue