We are running Jenkins with ECS cloud, meaning the agents are docker based agents.
Some of our pipelines are using image.inside to run arbitrary build tools which are not part of the slave images.
Before upgrading to amazon-ecs-agent-1.16.0 we got the following message in the log files:
After the upgrade, we get:
Looking at The DockerClient code I see that the way the plugin understands it is running within docker container, is by matching docker cgroups pattern with the default hierarchy name docker.
The problem is that AWS ECS changed their default hierarchy to be ecs
Because of that, image.inside step stopped working and we get the following error each build.
I believe a quick fix would be to change the regex to match ecs as well, or add a cgroups hierarchy configuration parameter to the plugin.