title: Docker container command not found or does not exist
body: <p>Im having troubles with Docker.</p>
  
  <p>Here is my DockerFile</p>
  
  <pre><code>FROM alpine:3.3
  
  WORKDIR /
  
  COPY myinit.sh /myinit.sh
  
  ENTRYPOINT ["/myinit.sh"]
  </code></pre>
  
  <p>myinit.sh </p>
  
  <pre><code>#!/bin/bash
  set -e
  
  echo 123
  </code></pre>
  
  <p>Thats the way i build my image</p>
  
  <pre><code>docker build -t test  --no-cache 
  </code></pre>
  
  <p>Run logs</p>
  
  <pre><code>Sending build context to Docker daemon 3.072 kB
  Step 1 : FROM alpine:3.3
   ---&gt; d7a513a663c1
  Step 2 : WORKDIR /
   ---&gt; Running in eda8d25fe880
   ---&gt; 1dcad4f11062
  Removing intermediate container eda8d25fe880
  Step 3 : COPY myinit.sh /myinit.sh
   ---&gt; 49234cc3903a
  Removing intermediate container ffe6227c921f
  Step 4 : ENTRYPOINT /myinit.sh
   ---&gt; Running in 56d3d748b396
   ---&gt; 060f6da19513
  Removing intermediate container 56d3d748b396
  Successfully built 060f6da19513
  </code></pre>
  
  <p>Thats how i run the container</p>
  
  <pre><code>docker run --rm --name test2  test
  
  docker: Error response from daemon: Container command '/myinit.sh' not found or does not exist..
  </code></pre>
  
  <p>myinit.sh exist for sure. Here is ls -al</p>
  
  <pre><code>ls -al
  total 16
  drwxr-xr-x   4 lorddaedra  staff  136 10 май 19:43 .
  drwxr-xr-x  25 lorddaedra  staff  850 10 май 19:42 ..
  -rw-r--r--   1 lorddaedra  staff   82 10 май 19:51 Dockerfile
  -rwxr-xr-x   1 lorddaedra  staff   29 10 май 19:51 myinit.sh
  </code></pre>
  
  <p>Why it cant see my entrypoint script? Any solutions?</p>
  
  <p>Thanks</p>