I'm trying to follow CIS Security Benchmark for Docker containers and there are checks like "Use --pids-limit
flag with an appropriate value when launching the container" that I can't do if I'm using version 3 of docker-compose.
So I was thinking on running a script that would do docker container update --pids-limit 1234 <container-name>
but ran into the issue of getting the container's name from docker-compose in an automated way, so that it runs for every service listed on the yml.