pumba icon indicating copy to clipboard operation
pumba copied to clipboard

Remove tc container after usage

Open jonastheis opened this issue 5 years ago • 1 comments
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.

image

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 avatar May 21 '20 06:05 jonastheis

@jonastheis thank you for reporting this issue. Probably, it's related to API version, pumba is using. Need to check.

alexei-led avatar Jun 04 '20 07:06 alexei-led