containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

systemd cgroup driver is unsupported

Open ziggythehamster opened this issue 5 years ago • 4 comments

Some third-party work was started on this (https://github.com/aws/amazon-ecs-agent/pull/1140), but never completed. I'm using CentOS 8 and would really rather use the systemd cgroup driver. I've also submitted an AWS support ticket for this feature request, but the support engineer requested I remove the ticket number.

ziggythehamster avatar Oct 11 '20 07:10 ziggythehamster

In addition for support for the systemd cgroup driver, it would also be useful to be able to provide an alternative parent. Right now tasks in ECS cannot have a parent specified.

taylorb-syd avatar Oct 14 '20 23:10 taylorb-syd

Docker 20.01 is out now, which defaults to the systemd cgroup driver. The ECS agent will require changing the default to cgroupfs in order to work on Docker 20.01.

ziggythehamster avatar Dec 23 '20 19:12 ziggythehamster

It should be opportunistic based on whether the systemd driver is available/works: https://github.com/moby/moby/pull/40846

(So if it isn't, it should automatically fall back appropriately and work just like 19.03)

tianon avatar Dec 23 '20 20:12 tianon

I think that https://github.com/aws/amazon-ecs-agent/pull/3161 getting merged makes this work now, because I am able to get ECS to work correctly with native.cgroupdriver set to systemd, and the ECS slice shows up as expected.

ziggythehamster avatar Sep 01 '22 19:09 ziggythehamster