You can set the volume and place the app.jar application there. Therefore, you do not need to restore the image, you just restart the container.
Dockerfile
FROM java:8 ENTRYPOINT [ "sh", "-c", "java -jar /mnt/app.jar" ]
Put your app.jar in / docker / spring /
Build and run:
docker build -t spring_test . docker run -d -v /docker/spring/:/mnt -p 12384:8080 --name spring_test_running spring_test
If you update the spring application you simply run:
docker restart spring_test_running
Sha7x source share