docker-maven-plugin icon indicating copy to clipboard operation
docker-maven-plugin copied to clipboard

Is it possible to stop, rebuild and start a *single* container from the fabric8 maven plugin config inside my pom.xml?

Open maxant opened this issue 3 years ago • 1 comments

Description

(I think this is more of a feature request)

I have configured some images in my pom.xml and start them using docker:start. If I change anything in the pom, say an evironment variable, I need to restart everything with docker:stop and docker:start in order for the changes to take effect, even though they only affect a single image and I have say 5 running in total (database, jboss, wiremock, kafka, zookeeper, etc.).

It would be cool if I could issue something like docker:restart <imageName> and it would stop the container, recreate it with the new config, and then start it. This would save me minutes per day, perhaps an hour per week!

Info

  • docker-maven-plugin version : latest
  • Maven version (mvn -v) : 3.6.3

maxant avatar Jan 06 '22 10:01 maxant

Umm, have you tried docker:watch[0] ? Maybe this could be useful for your use case

[0] http://dmp.fabric8.io/#docker:watch

rohanKanojia avatar Jan 06 '22 10:01 rohanKanojia