diff --git a/daemon/daemon_unix.go b/daemon/daemon_unix.go index 3f0f9f1d6..8ea6c5c9a 100644 --- a/daemon/daemon_unix.go +++ b/daemon/daemon_unix.go @@ -114,9 +114,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