Configuration option to execute docker:stop in case of the failing build
See original GitHub issueDescription
We use the plugin the start some docker images in the pre-integration-test
phase and stop them in the post-integration-test
. This works very well. However, if any of the integration tests fails the build, then the created docker containers remain running. Thus, it would be great if there would be a configuration option to run docker:stop
in case the build fails. This way everything would be cleaned up correctly.
This is a feature request, however I am not sure how hard it is to implement this or if it’s possible at all.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:25 (3 by maintainers)
Top Results From Across the Web
Why Does My Docker Container Stop? - Tutorial Works
When you run a container image you've pulled from a registry like Docker Hub, ... the case if you're using Kubernetes, which will...
Read more >docker stop - Docker Documentation
docker stop : The main process inside the container will receive `SIGTERM`, ... in the container's Dockerfile, or the --stop-signal option to docker...
Read more >Stop and delete Docker container if it's running - Stack Overflow
In this case, you can use the below command for preventing the build from failing. 'docker stop rabbitmq && docker rm rabbitmq ||...
Read more >fabric8io/docker-maven-plugin
Specification of external configuration as an alternative to this XML based configuration with <run> and <build> . It contains a <type> element ...
Read more >Docker - ArchWiki - Arch Linux
5 Run GPU accelerated Docker containers with NVIDIA GPUs ... This is useful for setting up reoccuring services that are use often and/or ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 the container is not stopping incase of test failures. But I use surefire to run my test.
@rohanKanojia Sure. I will try to have a look in the following days at the source and send a PR.