79333055

Date: 2025-01-06 12:43:22
Score: 1
Natty:
Report link

I am facing the issue while running the docker image, attached the Dockerfile content here :

FROM eclipse-temurin:21 RUN apt-get update VOLUME /tmp EXPOSE 8080 ADD target/spring-boot-aws-exe.jar spring-boot-aws-exe.jar ENTRYPOINT [ "java", "-jar", "/spring-boot-aws-exe.jar " ]

The error while running the docker command from git bash: Unable to access jarfile

please see below command which I have run it from GIT bash **** MINGW64 ~/Downloads/springjpa (master) $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE springjpa latest dcb2d2eabe26 18 seconds ago 1.09GB eclipse-temurin 21 1f1cad73899c About an hour ago 863MB

**** MINGW64 ~/Downloads/springjpa (master) $ docker run -p 8080:8080 dcb2d2eabe26 Error: Unable to access jarfile /spring-boot-aws-exe.jar

****MINGW64 ~/Downloads/springjpa (master)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Asit Kumar