title: Why I am getting an oci runtime error when running a simple docker image?
body: <p>I am new to docker and I want to create a simple image that when i run it i can see its output on the terminal. I tried two ways:</p>
  
  <p>first way:</p>
  
  <ul>
  <li>I created a simple bash file hello.sh containing <code>echo "hello"</code></li>
  <li>Then I created a dockerfile containing: </li>
  </ul>
  
  <p><code>FROM Scratch
   ADD script.sh /usr/local/bin/run.sh
   CMD ["/usr/local/bin/run.sh"]</code></p>
  
  <ul>
  <li>I created the image using: <code>go build -t hello_image .</code></li>
  <li>And then ran the image using: <code>go run hello_image</code></li>
  <li>I received and error: <code>standard_init_linux.go:175: exec user process caused "exec format error"</code></li>
  </ul>
  
  <p>Then I tried a second way:</p>
  
  <ul>
  <li>I created  a Dockerfile containing:</li>
  </ul>
  
  <p><code>FROM Scratch
   CMD echo "This is a test."</code></p>
  
  <ul>
  <li>I built the image </li>
  <li>I ran the image</li>
  <li>I got an error:</li>
  </ul>
  
  <p><code>Error response from daemon: oci runtime error: exec: "/bin/sh": stat /bin/sh: no such file or directory.</code></p>
  
  <p>Can anyone help me in solving this errors or even explain what should I do to create a simple image of my code and see its output when I run it. Thank you</p>