mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix memory swappiness lxc
Signed-off-by: Jessica Frazelle <princess@docker.com>
This commit is contained in:
parent
0547b5fb2a
commit
a38b544ef0
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ lxc.cgroup.blkio.weight = {{.Resources.BlkioWeight}}
|
||||||
{{if .Resources.OomKillDisable}}
|
{{if .Resources.OomKillDisable}}
|
||||||
lxc.cgroup.memory.oom_control = {{.Resources.OomKillDisable}}
|
lxc.cgroup.memory.oom_control = {{.Resources.OomKillDisable}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Resources.MemorySwappiness}}
|
{{if gt .Resources.MemorySwappiness 0}}
|
||||||
lxc.cgroup.memory.swappiness = {{.Resources.MemorySwappiness}}
|
lxc.cgroup.memory.swappiness = {{.Resources.MemorySwappiness}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue