Open vmassol opened 2 years ago
@vmassol do you happen to have Ryuk disabled?
@bsideup nope, we love Ryuk and we never disable it ;)
Also, most of the time the networks are cleaned fine (judging by the amount of tests we do every day and the number of stray docker networks remaining).
We faced the same problem
Module
Core
Testcontainers version
1.17.3
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86
Docker version
What happened?
We're getting regularly the error
Caused by: com.github.dockerjava.api.exception.NotFoundException: Status 404: {"message":"could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network"}
in our TC-based tests.While researching this, I've found that several networks created by TC remain and are not deleted after the tests. For example on our CI agent:
If I inspect the networks with the numbers in their name, I can see they're labelled as TC ones:
Is this a known bug/limitation? Is there something I can do about it?
Thanks!
Relevant log output
No response
Additional Information
No response