Error: Unable to access jarfile when running docker container

后端 未结 2 1147
渐次进展
渐次进展 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: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/

提交回复
热议问题