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

[ECS] [request] Support cgroupns Docker flag

Open paologallinaharbur opened this issue 1 year ago • 1 comments

Summary

We would like to be able to leverage the Docker "--cgroupns" flag when creating a task.

Why

We would like to run our integration (nri-ecs) on ECS EC2 having cgroupsV2, however, due to the change of the value of default-cgroupns-mode for cgourpsV2 (with https://github.com/moby/moby/pull/40174) we have some issues since we cannot access some files we leverage to gather and compute several metrics.

I think it is already possible to modify the default-cgroupns-mode therefore I do not expect that to be a security issue, just a missing flag. Consider that it was an issue other projects had https://github.com/compose-spec/compose-spec/issues/148.

Expected Behavior

  • I'd like to have the possibility to configure from the task --cgroupns to override the default?
  • Is there a workaround to set such option per task?

paologallinaharbur avatar Jan 30 '24 12:01 paologallinaharbur

Thank you for the feature request, @paologallinaharbur. I will move the request to https://github.com/aws/containers-roadmap/issues which is our central feature request tracking repository.

amogh09 avatar May 01 '24 22:05 amogh09