You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the complex case, when test suite creates multiple containers attached to the a new network that is also created by the test, reaper intermittently fails to remove network upon completion of the test.
go version go1.14.1 darwin/amd64
github.com/testcontainers/testcontainers-go v0.3.1
Once the above test is executed I still see the test-network in the list:
$ docker network ls
NETWORK ID NAME DRIVER SCOPE
dc5e0801c8e8 bridge bridge local
7ae8213f0a86 host host local
67fe4e22fb3f none null local
f1d721f644a2 test-network bridge local
Expected behavior
Upon completion of the test I expect the test-network be removed.
Additional context
Further analysis of the proeblem shows that it is likely occurs due to the fact that testcontainers-go by default creates a reaper to control lifecycle of each container or network, hence if one of the containers take time to stop, reaper that controls network might attempt to remove it while there are still containers attached to it. Hence, it leaves network behind.
Ideally, there should be a single reaper that controls the whole test stack, similarly how the Java library behaves by default.
The text was updated successfully, but these errors were encountered:
Describe the bug
In the complex case, when test suite creates multiple containers attached to the a new network that is also created by the test, reaper intermittently fails to remove network upon completion of the test.
To Reproduce
Once the above test is executed I still see the
test-network
in the list:Expected behavior
Upon completion of the test I expect the
test-network
be removed.** docker info **
output of the command:
Additional context
Further analysis of the proeblem shows that it is likely occurs due to the fact that testcontainers-go by default creates a reaper to control lifecycle of each container or network, hence if one of the containers take time to stop, reaper that controls network might attempt to remove it while there are still containers attached to it. Hence, it leaves network behind.
Ideally, there should be a single reaper that controls the whole test stack, similarly how the Java library behaves by default.
The text was updated successfully, but these errors were encountered: