<p>I have the following Dockerfile:</p>
<pre class="lang-sh prettyprint-override"><code>FROM python:3-alpine
WORKDIR /usr/src/app
COPY requirements.txt .
RUN pip install -qr requirements.txt
COPY target-watch.py .
CMD [&quot;python3&quot;, &quot;./target-watch.py&quot;]
</code></pre>
<p>If I deploy this to a Kubernetes cluster the build went fine, but I got an error from the Kubernetes logs. To verfiy my image I run the following command:</p>
<pre class="lang-sh prettyprint-override"><code>docker run --rm -it --entrypoint /bin/bash  docker-conveyor.xxx.com/myorg/my_cron_jobs:2021.12.08_03.51_abcdef
</code></pre>
<p>Which gives me this response:</p>
<pre class="lang-none prettyprint-override"><code>docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: &quot;/bin/bash&quot;: stat /bin/bash: no such file or directory: unknown.
</code></pre>
<p>How can this be fixed? I assume a shell is missing in my image. How do i have to change my Dockerfile to make it work without any errors?</p>

<p>Your container image doesn't have bash so you should use /bin/sh instead of /bin/bash.</p>
<pre><code>docker run --rm -it --entrypoint /bin/sh  docker-conveyor.xxx.com/myorg/my_cron_jobs:2021.12.08_03.51_abcdef
</code></pre>
<p>Alpine docker image doesn't have bash installed by default. You will need to add the following commands to get bash:</p>
<pre><code>RUN apk update &amp;&amp; apk add bash
</code></pre>
<p>If you're using Alpine 3.3+ then you can just do</p>
<pre><code>RUN apk add --no-cache bash
</code></pre>
