Merge pull request #648 from mrunalp/cgroups_delegate

Set Delegate to true for cgroups transient units
This commit is contained in:
Mrunal Patel 2016-03-16 14:44:02 -07:00
commit 53ca128353
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,8 @@ func (m *Manager) Apply(pid int) error {
systemdDbus.PropSlice(slice),
systemdDbus.PropDescription("docker container "+c.Name),
newProp("PIDs", []uint32{uint32(pid)}),
// This is only supported on systemd versions 218 and above.
newProp("Delegate", true),
)
// Always enable accounting, this gets us the same behaviour as the fs implementation,