From 12fe27a40893d92489996550ddff976eba50332c Mon Sep 17 00:00:00 2001 From: Darren Stahl Date: Thu, 9 Jun 2016 12:37:17 -0700 Subject: [PATCH] Windows: Added support for memory limit Signed-off-by: Darren Stahl --- daemon/oci_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/oci_windows.go b/daemon/oci_windows.go index fd725d7fe2..571f273917 100644 --- a/daemon/oci_windows.go +++ b/daemon/oci_windows.go @@ -176,8 +176,8 @@ func (daemon *Daemon) createSpec(c *container.Container) (*libcontainerd.Spec, e Shares: &cpuShares, }, Memory: &windowsoci.Memory{ - //TODO Limit: ..., - //TODO Reservation: ..., + Limit: &c.HostConfig.Memory, + //TODO Reservation: ..., }, Network: &windowsoci.Network{ //TODO Bandwidth: ...,