Преглед изворни кода

add support for device_cgroup_rules

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof пре 3 година
родитељ
комит
d8775c7a28
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      pkg/compose/create.go

+ 1 - 0
pkg/compose/create.go

@@ -500,6 +500,7 @@ func getDeployResources(s types.ServiceConfig) container.Resources {
 		CPUShares:          s.CPUShares,
 		CPUPercent:         int64(s.CPUS * 100),
 		CpusetCpus:         s.CPUSet,
+		DeviceCgroupRules:  s.DeviceCgroupRules,
 	}
 
 	if s.PidsLimit != 0 {