Skip to content

Commit 4d6e672

Browse files
committed
Merge branch 'pr-1573'
Fix systemd cgroup after memory type changed LGTMs: @crosbymichael @cyphar Closes opencontainers#1573
2 parents 4e33fae + acaf689 commit 4d6e672

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)