[ECS] [request] Support cgroupns Docker flag
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
--cgroupnsto override the default? - Is there a workaround to set such option per task?
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.