mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
add support for device_cgroup_rules
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
158b5ff6a3
commit
d8775c7a28
@ -500,6 +500,7 @@ func getDeployResources(s types.ServiceConfig) container.Resources {
|
|||||||
CPUShares: s.CPUShares,
|
CPUShares: s.CPUShares,
|
||||||
CPUPercent: int64(s.CPUS * 100),
|
CPUPercent: int64(s.CPUS * 100),
|
||||||
CpusetCpus: s.CPUSet,
|
CpusetCpus: s.CPUSet,
|
||||||
|
DeviceCgroupRules: s.DeviceCgroupRules,
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.PidsLimit != 0 {
|
if s.PidsLimit != 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user