mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #14030 from estesp/init-memory-swappiness
Initialize swappiness in libcontainer cgroups template
This commit is contained in:
commit
c281549610
1 changed files with 3 additions and 2 deletions
|
@ -36,8 +36,9 @@ func New() *configs.Config {
|
||||||
{Type: "NEWNET"},
|
{Type: "NEWNET"},
|
||||||
}),
|
}),
|
||||||
Cgroups: &configs.Cgroup{
|
Cgroups: &configs.Cgroup{
|
||||||
Parent: "docker",
|
Parent: "docker",
|
||||||
AllowAllDevices: false,
|
AllowAllDevices: false,
|
||||||
|
MemorySwappiness: -1,
|
||||||
},
|
},
|
||||||
Mounts: []*configs.Mount{
|
Mounts: []*configs.Mount{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue