diff --git a/daemon/daemon_unix.go b/daemon/daemon_unix.go index c94ea49b52..22142bcf14 100644 --- a/daemon/daemon_unix.go +++ b/daemon/daemon_unix.go @@ -115,9 +115,6 @@ func (daemon *Daemon) adaptContainerSettings(hostConfig *runconfig.HostConfig, a // By default, MemorySwap is set to twice the size of Memory. hostConfig.MemorySwap = hostConfig.Memory * 2 } - if hostConfig.MemoryReservation == 0 && hostConfig.Memory > 0 { - hostConfig.MemoryReservation = hostConfig.Memory - } } // verifyPlatformContainerSettings performs platform-specific validation of the