Skip to content

Commit acaf689

Browse files
committed
Fix systemd cgroup after memory type changed
Fixes: opencontainers#1557 I'm not quite sure about the root cause, looks like systemd still want them to be uint64. Signed-off-by: Qiang Huang <[email protected]>
1 parent ae29480 commit acaf689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/cgroups/systemd/apply_systemd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func (m *Manager) Apply(pid int) error {
260260

261261
if c.Resources.Memory != 0 {
262262
properties = append(properties,
263-
newProp("MemoryLimit", c.Resources.Memory))
263+
newProp("MemoryLimit", uint64(c.Resources.Memory)))
264264
}
265265

266266
if c.Resources.CpuShares != 0 {

0 commit comments

Comments
 (0)