I create the docker image but I am trying to give a parameter to the docker image but I am getting an permission denied error on my entry.sh file.
Docker File:
FROM ubuntu
MAINTAINER ravat
RUN mkdir -p /home/ravata/Desktop/DockerDemo/
RUN echo “Hello Apache server on Ubuntu Docker” > /home/ravata/Desktop/DockerDemo/index.html
COPY entry.sh .
CMD /bin/bash entry.sh
enrty.sh file:
#!/bin/bash -l
echo $1
I built the docker image with command:- docker build -t docker-demo .
Now I am trying to provide parameter to docker Image to run :- docker run -ti docker-demo /entry.sh ravat