please help me.
With the upgrade of the docker, adding jar to the container with the absolute path no longer works. How to make, that at restart of the container the new jar was picked up?
I did a new jar and restarted the container, now I can not do this because it’s impossible to specify the absolute path to the new jar in Dockerfile?
Here is my Dockerfile that worked before updating to the new version of the docker. From him I created a image without any problems.
FROM java:8 VOLUME /tmp EXPOSE 8888 ADD /home/jdev/docker-storage/jenkins/workspace/CA/build/libs/ca.jar /app.jar RUN bash -c 'touch /app.jar' ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
Now I can not create an image, because I need to specify a relative path. And after restart a new image is not copied to the Docker-container.
ADD /home/jdev/docker-storage/jenkins/workspace/CA/build/libs/ca.jar /app.jar
Thanks for the help!