<p>I have a VM with kubernetes installed using kubeadm (NOT minikube). The VM acts a the single node of the cluster, with taints removed to allow it to act as both Master and Worker node (as shown in the kubernetes documentation).
I have saved, transfered and loaded a my <em>app:test</em> image into it. I can easily run a container with it using docker run.
It shows up when I run <em>sudo docker images</em>.</p>
<p>When I create a deployment/pod that uses this image and specify <em>Image-PullPolicy: IfNotPresent</em> or <em>Never</em>, I still have the <em>ImagePullBackoff</em> error. The describe command shows me it tries to pull the image from dockerhub...</p>
<p>Note that when I try to use a local image that was <em>pulled as the result of creating another pod</em>, the ImagePullPolicies seem to work, no problem. Although the <em>image doesn't appear when i run sudo docker images --all</em>.</p>
<p>How can I use a local image for pods in kubernetes? Is there a way to do it without using a private repository?</p>

Olivier
<blockquote>
<p>image doesn't appear when i run sudo <code>docker images --all</code></p>
</blockquote>
<p>Based on your comment, you are using K8s v1.22, which means it is likely your cluster is using <code>containerd</code> container runtime instead of <code>docker</code> (you can check with <code>kubectl get nodes -o wide</code>, and see the last column).</p>
<p>Try listing your images with <code>crictl images</code> and pulling with <code>crictl pull &lt;image_name&gt;</code> to preload the images on the node.</p>
