<p>I have installed docker desktop and i have an image when i use the command docker images:</p>

<pre><code>JamesGregory@LT-BY1842A489OJ MINGW64 /c/Dev
$docker images
REPOSITORY              TAG  IMAGE ID       CREATED        SIZE
productpricingservice   dev  97be3cef2ce8   5 minutes ago  207MB
</code></pre>

<p>When i run the command:
<code>kubectl apply -f "C:\Dockerkubernetes\pricingpod.yaml"</code><br>
The pod is created, but i get an error when pulling the image.</p>

<pre><code>JamesGregory@LT-BY1842A489OJ MINGW64 /c/Dev
$kubectl get pods
NAME               READY   STATUS         RESTARTS   AGE
demo               1/1     Running        0          2d19h
pricingpodworking  0/1     ErrImagePull   0          14s
</code></pre>

<p>This is my yaml file, how do i get the docker image to be pulled into the compose file:</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: pricingpodworking
spec:
  containers:
  - name: productpricingcontainer
    image: productpricingservice:dev
</code></pre>

<p>The error i am getting using the desc command is:
<code>Failed to pull image "productpricingservice": rpc error: code = Unknown desc = Error response from daemon: pull access denied for productpricingservice, repository does not exist or may require 'docker login': denied: requested access to the resource is denied</code></p>

<p>It Seems adding your docker desktop name to the front of your image is a requirment e.g. jamesgregor7/imagename:tag.</p>

Hawkzey
<p>I faced a similar issue this week. 
Kubernetes try to pull images (even if is available on the node) because <code>imagePullPolicy</code> property has default value <code>always</code> 
k8s is trying to do docker login to compare images first. (i am not sure though) </p>

<p>setting up <code>imagePullPolicy</code> to <code>never</code> or <code>idNotPresent</code> for such case worked for me.</p>
