/bin/sh: 1: python: not found while running docker container
<p>This is my docker file</p>

<pre><code>FROM ubuntu:14.04 
ADD ./file.py ./
CMD python file.py
</code></pre>

<p>I am building using below command:  </p>

<pre><code>docker build -t myimage .
</code></pre>

<p>And running using this: </p>

<pre><code>docker run myimage
</code></pre>

<p>And then getting below error after running:</p>

<pre><code>/bin/sh: 1: python: not found
</code></pre>

<p>What should I do so the file file.py will be executed using python ? </p>

<p>Use <a href="https://hub.docker.com/_/python" rel="nofollow">official Python Docker image</a>:</p>

<pre><code>FROM python:3.5
COPY ./file.py ./
CMD python file.py
</code></pre>

python docker