diff --git a/spec.go b/spec.go index 4a31f02d1..a7c4b8f0a 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