[systemd-devel] Issues with docker systemd cgroups integration

Michal Sekletar msekleta at redhat.com
Tue Mar 15 17:01:20 UTC 2016


On Tue, Mar 15, 2016 at 5:42 PM, Mrunal Patel <mpatel at redhat.com> wrote:
>
>
>
>> >
>> > docker.io did that too three weeks ago:
>> >
>> >   https://github.com/docker/docker/commit/65820132
>>
>> This seems odd. I thought you primarily want to enable delegation for
>> scope units wrapping processes which constitute your container and not
>> for the container manager itself. For example, on Fedora 23
>> libvirtd.service doesn't have Delegate=yes. However libvirtd registers
>> VMs as machines in machined. And machined will take care for creating
>> scope unit and it also sets Delegate=yes for the scope.
>>
> Yes, this is the model we have. So, it looks like we should set Delegate=yes
> for the scope. Last time I tried, I got some errors from the API.
> I will try again and respond back on this thread.

You can have a look at our C implementation and re-implement it in Go.

https://github.com/systemd/systemd/blob/master/src/machine/machined-dbus.c#L1277

Michal

>
> Thanks,
> Mrunal


More information about the systemd-devel mailing list