Allow --device-cgroup-rule to be passed in by docker API
This looks like the correct fix, but I have no idea how to test.
Fixes:
[NO NEW TESTS NEEDED]
Will have reporter verify if this fixes the problem.
@@ -392,7 +392,7 @@ func cliOpts(cc handlers.CreateContainerConfig, rtc *config.Config) (*entities.C
// Detach: false, // don't need
// DetachKeys: "", // don't need
Devices: devices,
- DeviceCgroupRule: nil,
+ DeviceCgroupRule: cc.HostConfig.DeviceCgroupRules,
DeviceReadBPs: readBps,
DeviceReadIOPs: readIops,
DeviceWriteBPs: writeBps,
