Docker-maven-plugin: Allow killing and removing all spawned containers

Created on 27 Mar 2019  路  5Comments  路  Source: fabric8io/docker-maven-plugin

We use the maven plugin for integration testing. The stopping of every container in a sequential order takes some time. As it is used just for testing, it would be better if the plugin could offer a mechanism to execute docker kill on every container, which should be almost immediate.

Most helpful comment

@rhuss : Shall I look into this?

All 5 comments

Not sure if I understand you correctly when you say 'kill on every' container, and why this is faster than proper docker:stop.

I think he means that a regular docker stop would wait for the process to terminate correctly while a hard docker rm -f would terminate the process with a sigkill which is faster for some heavy application servers.

I see and think it might be a valid use case for testing. I'm positive for adding a stopMode to RunImageConfiguration with e.g. possible values graceful and kill and implementing the proper semantics.

However, I can't do the coding but would happy to support a submitted PR (if you have some patience, as I'm really low on time which I can spend on d-m-p)

@rhuss : Shall I look into this?

@rohanKanojia would be awesome. You are the best ;-)

Was this page helpful?
0 / 5 - 0 ratings