title: kubernetes cannot pull local image
body: <p>I am using kubernetes on a single machine for testing, I have built a custom image from the nginx docker image, but when I try to use the image in kubernetes I get an image pull error?????</p>
  
  <p><strong>MY POD YAML</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>kind: Pod
  apiVersion: v1
  metadata:
    name: yumserver
    labels:
      name: frontendhttp
  spec:
    containers:
      - name: myfrontend
        image: my/nginx:latest
        ports:
          - containerPort: 80
            name: "http-server"
        volumeMounts:
        - mountPath: "/usr/share/nginx/html"
          name: mypd
    imagePullSecrets:
      - name: myregistrykey
  
    volumes:
      - name: mypd
        persistentVolumeClaim:
         claimName: myclaim-1
  </code></pre>
  
  <p><strong>MY KUBERNETES COMMAND</strong></p>
  
  <p>kubectl create -f pod-yumserver.yaml</p>
  
  <p><strong>THE ERROR</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>kubectl describe pod yumserver
  
  
  Name: yumserver
  Namespace: default
  Image(s):   my/nginx:latest
  Node:       127.0.0.1/127.0.0.1
  Start Time: Tue, 26 Apr 2016 16:31:42 +0100
  Labels:     name=frontendhttp
  Status:     Pending
  Reason:     
  Message:    
  IP:     172.17.0.2
  Controllers:    &lt;none&gt;
  Containers:
    myfrontend:
      Container ID:   
      Image:      my/nginx:latest
      Image ID:       
      QoS Tier:
        memory:       BestEffort
        cpu:      BestEffort
      State:      Waiting
        Reason:       ErrImagePull
      Ready:      False
      Restart Count:  0
      Environment Variables:
  Conditions:
    Type      Status
    Ready     False 
  Volumes:
    mypd:
      Type:   PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
      ClaimName:  myclaim-1
      ReadOnly:   false
    default-token-64w08:
      Type:   Secret (a secret that should populate this volume)
      SecretName: default-token-64w08
  Events:
    FirstSeen LastSeen    Count   From            SubobjectPath           Type        Reason          Message
    --------- --------    -----   ----            -------------           --------    ------          -------
    13s       13s     1   {default-scheduler }                    Normal      Scheduled       Successfully assigned yumserver to 127.0.0.1
    13s       13s     1   {kubelet 127.0.0.1}                 Warning     MissingClusterDNS   kubelet does not have ClusterDNS IP configured and cannot create Pod using "ClusterFirst" policy. Falling back to DNSDefault policy.
    12s       12s     1   {kubelet 127.0.0.1} spec.containers{myfrontend} Normal      Pulling         pulling image "my/nginx:latest"
    8s        8s      1   {kubelet 127.0.0.1} spec.containers{myfrontend} Warning     Failed          Failed to pull image "my/nginx:latest": Error: image my/nginx:latest not found
    8s        8s      1   {kubelet 127.0.0.1}                 Warning     FailedSync      Error syncing pod, skipping: failed to "StartContainer" for "myfrontend" with ErrImagePull: "Error: image my/nginx:latest not found"
  </code></pre>