<p>I have a failing <code>public docker hub</code> container and if I <code>kubectl apply -f ...</code> with the same version, <code>:latest</code> in this case, I am getting:</p>

<pre><code>Container image "&lt;name/name&gt;:latest" already present on machine
</code></pre>

<p>I don't see the image anywhere, in this case I am running on Google Kubernetes Engine - and it is not in the google <code>container registry</code>.</p>

<p>The solution or workaround, is of course to fix the code error in the docker container, and add to the version number and push again - then it all works and get pulled.</p>

<p>But is there no way to clear the image in Kubernetes, something like in docker <code>docker rmi &lt;name/name&gt;:latest</code>?</p>

<p>I think use <code>latest</code> tag - not the best. But if it is necessary, <a href="https://kubernetes.io/docs/concepts/containers/images/#updating-images" rel="nofollow noreferrer">official</a> workaround <code>imagePullPolicy=Always</code>.</p>

<p>Why this not best way? More info can find <a href="https://kubernetes.io/docs/concepts/configuration/overview/#container-images" rel="nofollow noreferrer">this</a>.</p>
