<p>I am using minikube to create k8s cluster. I am trying to create a pod. The pod is created but there is an error while pulling my image. When I try to run <code>kubectl describe pod posts</code>, I get the error below, but my image present locally.</p>
<pre><code>Failed to pull image &quot;suresheerf/posts&quot;: rpc error: code = Unknown desc = Error response from daemon: pull access denied for suresheerf/posts, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
</code></pre>
<p>What's happening here? How to resolve it?</p>
<p>My K8s Pod yaml:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: posts
spec:
  containers:
    - name: posts
      image: suresheerf/posts

</code></pre>
<p>Also, my terminal screen shot:<a href="https://i.stack.imgur.com/B4EUK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B4EUK.png" alt="terminal" /></a></p>

Suresh D
<p>Looks to me as if your image is not available to minikube. Minikube runs on VMs and uses its own local Docker daemon.</p>
<p>Make your image available to minikube like this:</p>
<ol>
<li>Execute <code>eval $(minikube -p minikube docker-env)</code> to point your local shell to minikube's Docker daemon.</li>
<li>Build your image, e.g. <code>docker build -t suresheerf/posts</code> .</li>
<li>Make sure minikube does not try to pull your image from Docker Hub by modifying your Pod yaml by setting <code>imagePullPolicy</code> to <code>Never</code>:</li>
</ol>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Pod
metadata:
  name: posts
spec:
  containers:
    - name: posts
      image: suresheerf/posts
      imagePullPolicy: Never
</code></pre>
