I have a spring-boot project and I want automatically redeploy my jar in the container.
How to do it correctly?
So far, all I see is this way. It’s the right way?
@jsoler has the right idea generally. You need to make a new image with the updated artifact and replace the running container instance with another container using the updated / uniquely tagged image. This is one reason I like the swarm mode / docker service commands, it will roll out a new image to a running service easily by doing docker service update --image.