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
{{ message }}
Repository navigation
DockerComposeContainer does not remove the network after using a version 2 compose file #152
I'm not using the ambassador containers so am not affected by #146, meaning that I am successfully running with a version 2 docker-compose file. This means that each test run creates a network which is not removed at the end of the test.
Once I hit 32 networks, I ran into an error when trying to run docker-compose:
ERROR: failed to parse pool request for address space "LocalDefault" pool "" subpool "": could not find an available predefined network
We need to either remove the network ourselves, or run docker-compose down to clean up.
FWIW I backported the remove network command from docker-java 3.0.0-RC5 into our test suite (I see they released 3.0.0 final on Friday night!) and (with a sprinkling of nasty reflection to access private fields in the docker client), we have it successfully dropping the default network after the test run. This is sufficient for our use case; we have no plans to use additional custom networks.
Activity
rnorth commentedon Jun 2, 2016
Good catch, thanks! As discussed, I'll work this into the docker compose
refactoring I'm doing. I think I'd like to:
JVM shutdown
avoid networks slipping through the cracks
haines commentedon Jun 5, 2016
FWIW I backported the remove network command from docker-java 3.0.0-RC5 into our test suite (I see they released 3.0.0 final on Friday night!) and (with a sprinkling of nasty reflection to access private fields in the docker client), we have it successfully dropping the default network after the test run. This is sufficient for our use case; we have no plans to use additional custom networks.
rnorth commentedon Jun 11, 2016
Resolved in #156