<p>I have a local kubernetes cluster (minikube), that is trying to load images from my local Docker repo.</p>
<p>When I do a &quot;docker images&quot;, I get:</p>
<pre><code>cluster.local/container-images/app-shiny-app-validation-app-converter            1.6.9
cluster.local/container-images/app-shiny-app-validation                          1.6.9
</code></pre>
<p>Given I know the above images are there, I run some helm commands which uses these images, but I get the below error:</p>
<pre><code>Events:
  Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   BackOff    66s (x2 over 2m12s)  kubelet            Back-off pulling image &quot;cluster.local/container-images/app-shiny-app-validation-app-converter:1.6.9&quot;
  Warning  Failed     66s (x2 over 2m12s)  kubelet            Error: ImagePullBackOff
  Normal   Pulling    51s (x3 over 3m24s)  kubelet            Pulling image &quot;cluster.local/container-images/app-shiny-app-validation-app-converter:1.6.9&quot;
  Warning  Failed     11s (x3 over 2m13s)  kubelet            Failed to pull image &quot;cluster.local/container-images/app-shiny-app-validation-app-converter:1.6.9&quot;: rpc error: code = Unknown desc = Error response from daemon: Get https://cluster.local/v2/: dial tcp: lookup cluster.local: Temporary failure in name resolution
  Warning  Failed     11s (x3 over 2m13s)  kubelet            Error: ErrImagePull
</code></pre>
<p>Anyone know how I can fix this? Seems the biggest problem is <code>Get https://cluster.local/v2/: dial tcp: lookup cluster.local: Temporary failure in name resolution</code></p>

Mike K.
<ol>
<li>Add <code>cluster.local</code> to your <code>/etc/hosts</code> file in all your kubernetes nodes.</li>
</ol>
<pre><code>192.168.12.34 cluster.local
</code></pre>
<ol start="2">
<li>Check whether you can login to registry using <code>docker login cluster.local</code></li>
<li>If your registry has self-signed certificates, copy <code>cluster.local.crt</code> key to all kubernetes worker nodes <code>/etc/docker/certs.d/cluster.local/ca.crt</code></li>
</ol>
