Add support for updating Kernel Memory Limits (#256)

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickaël Laventure 2016-06-06 11:26:07 -07:00 committed by Michael Crosby
parent 5624732128
commit 16a8dfe6a8
6 changed files with 206 additions and 167 deletions

View file

@ -62,6 +62,7 @@ func (c *container) UpdateResources(r *Resource) error {
Reservation: u64Ptr(uint64(r.MemoryReservation)),
Swap: u64Ptr(uint64(r.MemorySwap)),
Kernel: u64Ptr(uint64(r.KernelMemory)),
KernelTCP: u64Ptr(uint64(r.KernelTCPMemory)),
},
CPU: &ocs.CPU{
Shares: u64Ptr(uint64(r.CPUShares)),