Description
Summary
The default prefix for a docker container is "docker" followed by the image name / sha. Several libraries determine the container id by parsing /proc/self/cgroup and expect "docker/container_id". This is one of the libraries that I use that after updating to the latest docker agent, my proxy no longer could get configured since it relies on determining the container id using the default values for docker. https://github.com/jwilder/docker-gen/blob/master/context.go#L172
I could not see any specific reason for why the new "ecs/task-arn" prefix was introduced in this commit f09f0f5 and would like to have it set back to the default.
Expected Behavior
9:perf_event:/docker/container-sha
8:memory:/docker/container-sha
7:hugetlb:/docker/container-sha
6:freezer:/docker/container-sha
5:devices:/docker/container-sha
4:cpuset:/docker/container-sha
3:cpuacct:/docker/container-sha
2:cpu:/docker/container-sha
1:blkio:/docker/container-sha
Observed Behavior
9:perf_event:/ecs/task-arn/container-sha
8:memory:/ecs/task-arn/container-sha
7:hugetlb:/ecs/task-arn/container-sha
6:freezer:/ecs/task-arn/container-sha
5:devices:/ecs/task-arn/container-sha
4:cpuset:/ecs/task-arn/container-sha
3:cpuacct:/ecs/task-arn/container-sha
2:cpu:/ecs/task-arn/container-sha
1:blkio:/ecs/task-arn/container-sha
Environment Details
ecs agent 1.16.0