RUN mkdir /test
COPY ./sample.sh /test
CMD [“sh”, “/test/sample.sh”]
docker run -d -p 8081:8080 --name Test -v /home/Docker/Container_File_System:/test test:v1
Here 2 problems:
The output says
sh: /test/sample.sh: No such file or directory
Also, as I have mapped a host folder to container folder, I was expecting the test folder & the sample.sh to be available at /home/Docker/Container_File_System post run, which did not happen.
Any help is appreciated.