dockertools: disable swap on Linux since it's unsupported.

Refs #39005
This commit is contained in:
Paulo Pires
2017-01-11 10:38:01 +00:00
parent dacc363605
commit f4edaf2b8c

View File

@@ -32,7 +32,7 @@ func updateHostConfig(hc *dockercontainer.HostConfig, opts *kubecontainer.RunCon
} }
func DefaultMemorySwap() int64 { func DefaultMemorySwap() int64 {
return -1 return 0
} }
func getContainerIP(container *dockertypes.ContainerJSON) string { func getContainerIP(container *dockertypes.ContainerJSON) string {