Error: Unable to access jarfile when running docker container

后端 未结 2 1144
渐次进展
渐次进展 2021-01-20 15:16

I am getting the following error when trying to run a docker container:

Error: Unable to access jarfile

My Dockerfile is like this:

相关标签:
2条回答
  • 2021-01-20 15:42

    I was able to resolve this by adding this to the bottom ENTRYPOINT ["java","-jar","repo-connector-1.5.4.jar"] CMD ["-start"]

    0 讨论(0)
  • 2021-01-20 15:45

    Could you please check the response of : "RUN ls -la /home/smartling/flagship/repo-connector-1.5.4/"

    Check if the file(repo-connector-1.5.4.jar) is having the required permission to run. If not please use chmod and grant the jar the permission.

    Command is as follow:
    RUN ["chmod", "+x", "/home/smartling/flagship/repo-connector-1.5.4/repo-connector-1.5.4.jar"]

    Place the above command after # Making sure the files are there
    RUN ls -la /home/smartling/flagship/repo-connector-1.5.4/

    0 讨论(0)
提交回复
热议问题