mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove support for MemoryReservation in systemd systems. This has been
deperecated since systemd 208. Docker-DCO-1.1-Signed-off-by: Victor Marmol <vmarmol@google.com> (github: vmarmol)
This commit is contained in:
parent
0b15944cb0
commit
69d43b2674
1 changed files with 1 additions and 5 deletions
|
@ -146,11 +146,7 @@ func Apply(c *cgroups.Cgroup, pid int) (cgroups.ActiveCgroup, error) {
|
|||
properties = append(properties,
|
||||
systemd1.Property{"MemoryLimit", dbus.MakeVariant(uint64(c.Memory))})
|
||||
}
|
||||
if c.MemoryReservation != 0 {
|
||||
properties = append(properties,
|
||||
systemd1.Property{"MemorySoftLimit", dbus.MakeVariant(uint64(c.MemoryReservation))})
|
||||
}
|
||||
// TODO: MemorySwap not available in systemd
|
||||
// TODO: MemoryReservation and MemorySwap not available in systemd
|
||||
|
||||
if c.CpuShares != 0 {
|
||||
properties = append(properties,
|
||||
|
|
Loading…
Reference in a new issue