diff --git a/daemon/execdriver/native/template/default_template.go b/daemon/execdriver/native/template/default_template.go index ecedcfc8cb..79795c8c01 100644 --- a/daemon/execdriver/native/template/default_template.go +++ b/daemon/execdriver/native/template/default_template.go @@ -36,8 +36,9 @@ func New() *configs.Config { {Type: "NEWNET"}, }), Cgroups: &configs.Cgroup{ - Parent: "docker", - AllowAllDevices: false, + Parent: "docker", + AllowAllDevices: false, + MemorySwappiness: -1, }, Mounts: []*configs.Mount{ {