1
0
Fork 0
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:
Jessica Frazelle 2015-07-24 15:33:46 -07:00
parent 0547b5fb2a
commit a38b544ef0

View file

@ -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}}