title: /bin/sh: /root/start-docker.sh: Permission denied when exec command in docker
body: <p>I am copy script into docker container when build,this is part of my Dockerfile:</p>
  
  <pre><code>ADD soa-room-service/build/libs/soa-room-service-1.0.0-SNAPSHOT.jar /soa-room-service-1.0.0-SNAPSHOT.jar
  ADD script/start-docker.sh /root/start-docker.sh
  
  EXPOSE 13003
  ENTRYPOINT /root/start-docker.sh
  </code></pre>
  
  <p>when I am running docker using this command:</p>
  
  <pre><code>docker run --name soa-room-service -d registry.cn-hangzhou.aliyuncs.com/dabai_app_k8s/dabai_product/soa-room:latest
  </code></pre>
  
  <p>this is docker logs output:</p>
  
  <pre><code>$ docker logs e62917af92ccf240c73574e71041229a65db54e29453723ba27d56bcf9856b9a
  /bin/sh: /root/start-docker.sh: Permission denied
  </code></pre>
  
  <p>I am replace the path using ~ symbol.But it still give me Permission denied error.How to make it works?</p>