From 844c98e073f2c5cfbd0c47c7a6690e282149ec8d Mon Sep 17 00:00:00 2001 From: Chun Chen Date: Tue, 16 Aug 2016 23:26:46 +0800 Subject: [PATCH] GetSpec missing memory reservation --- container/common/helpers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/container/common/helpers.go b/container/common/helpers.go index 3606d686..89090fb2 100644 --- a/container/common/helpers.go +++ b/container/common/helpers.go @@ -110,6 +110,7 @@ func GetSpec(cgroupPaths map[string]string, machineInfoFactory info.MachineInfoF spec.HasMemory = true spec.Memory.Limit = readUInt64(memoryRoot, "memory.limit_in_bytes") spec.Memory.SwapLimit = readUInt64(memoryRoot, "memory.memsw.limit_in_bytes") + spec.Memory.Reservation = readUInt64(memoryRoot, "memory.soft_limit_in_bytes") } }