Open Girivasan opened 3 years ago
Hi Girivasan,
Would introducing additional down
goal execution in pre-integration-test
phase fix your use-case? This would remove all dangling containers before docker-compose up
gets called.
Basically your executions
block for the plugin would look something like:
<executions>
<execution>
<id>clean-before-up</id>
<phase>pre-integration-test</phase>
<goals>
<goal>down</goal>
</goals>
</execution>
<execution>
<id>up</id>
<phase>pre-integration-test</phase>
<goals>
<goal>up</goal>
</goals>
</execution>
<execution>
<id>down</id>
<phase>post-integration-test</phase>
<goals>
<goal>down</goal>
</goals>
</execution>
</executions>
First of all, really appreciate the effort you put here and this plugin is very useful.
I want to create containers each and every time. Sometimes containers with the same name present, and is throwing errors with the plugin when containers are starting with up goal. Could you add support for this ?
docker-compose rm