From 2539d5389633e5f52c27fae09ac4685dbe2796da Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Tue, 7 Jul 2015 09:20:51 +0800 Subject: [PATCH] Add memory limit set Don't know why we missed that. Signed-off-by: Qiang Huang --- spec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/spec.go b/spec.go index 4a31f02d..a7c4b8f0 100644 --- a/spec.go +++ b/spec.go @@ -242,6 +242,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