Merge pull request #90 from hqhq/hq_add_memory_limit
Add memory limit set
This commit is contained in:
commit
48182db8cc
1
spec.go
1
spec.go
|
@ -243,6 +243,7 @@ func createCgroupConfig(spec *specs.LinuxSpec, devices []*configs.Device) (*conf
|
|||
AllowedDevices: append(devices, allowedDevices...),
|
||||
}
|
||||
r := spec.Linux.Resources
|
||||
c.Memory = r.Memory.Limit
|
||||
c.MemoryReservation = r.Memory.Reservation
|
||||
c.MemorySwap = r.Memory.Swap
|
||||
c.KernelMemory = r.Memory.Kernel
|
||||
|
|
Loading…
Reference in New Issue