pumba
pumba copied to clipboard
Remove tc container after usage
trafficstars
Problem
When using Pumba with an external tc-image then the spawned containers are not removed which leaves behind a plethora of created/exited containers.

Specifically, I'm using the following command
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock gaiaadm/pumba --log-level=debug netem --duration=100s -target=[IP] --tc-image=gaiadocker/iproute2 loss --percent=100 [container]
Expected behaviour
I'd expect the created tc helper containers to be deleted once Pumba exits. As a workaround, I'm currently using the following to clean up
docker rm -f "$(docker ps -a -q -f ancestor=gaiadocker/iproute2)"
@jonastheis thank you for reporting this issue. Probably, it's related to API version, pumba is using. Need to check.