Merge pull request #90 from hqhq/hq_add_memory_limit

Add memory limit set
This commit is contained in:
Michael Crosby 2015-07-07 11:30:24 -07:00
commit 48182db8cc
1 changed files with 1 additions and 0 deletions

View File

@ -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