title: Docker Image Entry Point Script Not Found
body: <p>I have a <code>Dockerfile</code> like:</p>
  
  <pre><code>FROM frolvlad/alpine-oraclejdk8:slim
  ADD build/libs/zuul*.jar /app.jar
  ADD src/main/script/startup.sh /startup.sh
  EXPOSE 8080 8999
  ENTRYPOINT ["/startup.sh"]
  </code></pre>
  
  <p><code>startup.sh</code> looks like:</p>
  
  <pre><code>#!/bin/sh
  set -e
  
  if [ $# -eq 0 ]
  then
      echo "Environment value required"
      exit 1
  fi
  
  java -jar -Xms400m -Xmx400m -Dlog4j.configurationFile=log4j2-qa2.xml -Djava.security.egd=file:/dev/./urandom -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.rmi.port=8999 app.jar
  </code></pre>
  
  <p>But when I run it with <code>docker run</code>, I got <code>docker: Error response from daemon: Container command '/startup.sh' not found or does not exist..</code>. The shell script has execute permission.</p>
  
  <p>I used the same way to run my other apps and they're all working fine. I wrote the files in Mac and tried to run the container in a Linux machine.</p>