title: Why this docker file is not running with a shell script?
body: <p>Now, I made a docker file named as (Dockerfile) as follows: </p>
  
  <p>When I build this using the following command:</p>
  
  <pre><code>docker build -f Dockerfile .
  </code></pre>
  
  <p>I get the following output:</p>
  
  <pre><code>Step 1 : FROM ******.dkr.ecr.us-east-1.amazonaws.com/centos-base:7
   ---&gt; 9ab68a0dd16a
  Step 2 : COPY echo_hello.sh /echo_hello.sh
   ---&gt; Using cache
   ---&gt; e7d541f5cf53
  Step 3 : RUN bash /echo_hello.sh
   ---&gt; Running in 4b5518faab28
  hello world
  hello world
  .......
  </code></pre>
  
  <p>But, when I then begin to run it using the following command: </p>
  
  <pre><code>docker run -it d2cc33b16e8f
  </code></pre>
  
  <p>This doesn't happen and instead it shows me an error: </p>
  
  <p>the command to run to start the application</p>
  
  <p>Where am I going wrong in this? </p>