daemon: execdriver: lxc: fix wrong template value passed to lxc conf
Signed-off-by: Antonio Murdaca <runcom@linux.com>
This commit is contained in:
parent
acdc0f82c0
commit
7b4f73ee6c
1 changed files with 2 additions and 2 deletions
|
@ -96,8 +96,8 @@ lxc.cgroup.memory.soft_limit_in_bytes = {{.Resources.Memory}}
|
|||
lxc.cgroup.memory.memsw.limit_in_bytes = {{$memSwap}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{if .Resources.KernelMemory}}
|
||||
lxc.cgroup.memory.kmem.limit_in_bytes = {{.Resources.Memory}}
|
||||
{{if gt .Resources.KernelMemory 0}}
|
||||
lxc.cgroup.memory.kmem.limit_in_bytes = {{.Resources.KernelMemory}}
|
||||
{{end}}
|
||||
{{if .Resources.CPUShares}}
|
||||
lxc.cgroup.cpu.shares = {{.Resources.CPUShares}}
|
||||
|
|
Loading…
Add table
Reference in a new issue