title: Docker Running Python Error - [Error 2] No such file or directory
body: <p>I am new to docker, I have prepared a dockerfile and built a basic docker image, however, I got this error when I run it. My dockerfile is below:</p>
  <pre><code>FROM python:3.8.6
  MAINTAINER tester  tester
  ADD . /code
  WORKDIR /code
  CMD [&quot;python&quot;, &quot;/app/Main.py&quot;]
  </code></pre>
  <p>I used this command to build my docker image (I am in folder &quot;test&quot; to execute this command):</p>
  <pre><code>docker build -t my_test .
  </code></pre>
  <p>And then I use this command tp run my docker image:</p>
  <pre><code>docker run -it my_test
  </code></pre>
  <p>Then I have got this following error:</p>
  <pre><code>python: can't open file '/app/Main.py': [Errno 2] No such file or directory
  </code></pre>
  <p>I can confirm the folder &quot;app&quot; has got script &quot;Main.py&quot;. What is the possible reason?</p>
  <p>Thanks, <a href="https://i.stack.imgur.com/IMxtI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IMxtI.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/cVW6r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cVW6r.png" alt="enter image description here" /></a></p>