title: Using Docker and getting file not found
body: <p>I'm trying to use Docker and am following the <a href="https://docs.docker.com/get-started/part2/" rel="nofollow noreferrer">getting started</a> documentation but my test script shows "not found".</p>
  
  <p>I'm trying to run a script: test.sh (only contains <code>echo "Hello"</code>)</p>
  
  <p>My docker directory contains
  <code>app/ docker-compose/ Dockerfile test.sh</code></p>
  
  <p>The Dockerfile contains:</p>
  
  <pre><code>FROM openjdk:8u181
  WORKDIR /app
  COPY . /app
  EXPOSE 69
  ENV NAME mer
  CMD "test.sh"
  </code></pre>
  
  <p>I build it like this:</p>
  
  <pre><code>$ docker build --tag=mer .
  Sending build context to Docker daemon  303.8MB
  Step 1/6 : FROM openjdk:8u181
   ---&gt; 82942d9df443
  Step 2/6 : WORKDIR /app
   ---&gt; Using cache
   ---&gt; b2586c6519ea
  Step 3/6 : COPY . /app
   ---&gt; 8ecd700feafe
  Step 4/6 : EXPOSE 69
   ---&gt; Running in 343cb5014528
  Removing intermediate container 343cb5014528
   ---&gt; 629cdc57f74e
  Step 5/6 : ENV NAME mer
   ---&gt; Running in 53844c2ea6fd
  Removing intermediate container 53844c2ea6fd
   ---&gt; b952a8f45dc8
  Step 6/6 : CMD "test.sh"
   ---&gt; Running in 1f1ef99503b8
  Removing intermediate container 1f1ef99503b8
   ---&gt; ffe838007e82
  Successfully built ffe838007e82
  Successfully tagged mer: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 will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
  </code></pre>
  
  <p>and run it like so:</p>
  
  <pre><code>$ docker run mer:latest
  /bin/sh: 1: test.sh: not found
  </code></pre>
  
  <p>Why does it say "test.sh: not found"?</p>
  
  <p>My environment: Windows 10 with Docker Desktop 2.1 running commands through Cygwin</p>