-
Notifications
You must be signed in to change notification settings - Fork 97
Description
Issue Overview
Failure to cleanup docker networks created by the cube framework when the container does not start
Expected Behaviour
Resources that are created automatically (particularly network) should be cleaned up, even on an error.
Current Behaviour
Every failed start still leaves networks in a bad state:
NETWORK ID NAME DRIVER SCOPE
dd4e7f1d6c26 bridge bridge local
63bd4b9e59dd e2e_default bridge local
8090aa381f39 e2e_default bridge local
684be06d1553 e2e_default bridge local
6f9ef479dc05 e2e_default bridge local
7dbaf8babc4d host host local
5ee4042f4095 none null local
Steps To Reproduce
- Add any erroneous (one that does not start) container to a docker-compose.yml
- Run a test
- After a failure to start the test container run
docker network ls - Manually delete the network (
docker network rm [id]), or repeat step 2 to see multiple network added by cube.
Additional Information
There should be shutdown hooks added to the JVM to ensure resources are cleaned up.