title: Starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory": unknown
body: <p>I want to understand how CMD and ENTRYPOINT works. So, I just created a very simple <code>Dockerfile</code></p>
  
  <pre><code>FROM scratch
  
  CMD echo "Hello First"
  
  ENTRYPOINT echo "Hello second" 
  </code></pre>
  
  <p>Then I build image of this :</p>
  
  <pre><code>docker build -t my_image .
  </code></pre>
  
  <p>The logs are as below: </p>
  
  <blockquote>
    <p>Step 1/3 : FROM scratch  ---> Step 2/3 : CMD echo "Hello First"  --->
    Using cache  ---> 9f2b6a00982f Step 3/3 : ENTRYPOINT echo "Hello
    second"  ---> Using cache  ---> 1bbe520f9526 Successfully built
    1bbe520f9526 Successfully tagged my_image:latest SECURITY WARNING: You
    are building a Docker image from Windows against a non-Windows Docker
    host. All files and directories added to build context w ill have
    '-rwxr-xr-x' permissions. It is recommended to double check and reset
    permissions for sensitive files and directories.</p>
  </blockquote>
  
  <p>When I create a container of this image it returns: </p>
  
  <pre><code>docker run my_image
  </code></pre>
  
  <p>Error is:</p>
  
  <blockquote>
    <p>docker: Error response from daemon: OCI runtime create failed:
    container_linux.go:344: starting container process caused "exec:
    \"/bin/sh\": stat /b in/sh: no such file or directory": unknown.</p>
  </blockquote>
  
  <p>Can someone please help me about error?</p>