title: how to create docker entrypoint with parameters
body: <p>I met a really headache for this issue and almost pull my hair up and still can not resolve it.
  I want docker image to start automatically whenever I start it, so I came to using entrypoint, but always failed.</p>
  
  <p>This is command I usually use to start my app:</p>
  
  <p>cd /opt/path
  ./start.sh -l dev -ssl false -srv api</p>
  
  <p>I now want to run this command automatically when docker get started.</p>
  
  <p>I used this in docker file:</p>
  
  <pre><code>WORKDIR /opt/ngcsc
  ENTRYPOINT ["start.sh","-l","kubstaging","-ssl", "false", "-srv", "api"] 
  </code></pre>
  
  <p>I got this error:</p>
  
  <pre><code>docker: Error response from daemon: oci runtime error: exec: "start.sh": executable file not found in $PATH.
  </code></pre>
  
  <p>But if I change to absolute path:</p>
  
  <p>ENTRYPOINT ["/opt/ngcsc/start.sh","-l","kubstaging","-ssl", "false", "-srv", "api"] </p>
  
  <p>after I run docker run image</p>
  
  <p>I got:</p>
  
  <pre><code>standard_init_linux.go:175: exec user process caused "exec format error"
  </code></pre>
  
  <p>This is really a big problem and I googled a lot, nothing worked. can you help to tell me what to do?</p>
  
  <p>Thanks</p>