title: ErrImagePull: Kubectl and Minikube when creating a pod
body: <p>I'm new to Kubernetes and learning it these days. I'm trying to create a deployment with the help of <code>kubectl</code> and every time I create a deployment, the container is not running and I get <code>ErrImagePull</code> or <code>ImagePullBackOff</code>.</p>
  <p>I have tried on two machines, both have the same problem.</p>
  <pre><code>kubectl create deployment nginx-depl --image=nginx
  </code></pre>
  <p>Following is the <code>description</code> of one of the deployments I was creating</p>
  <pre><code>Events:
    Type     Reason     Age   From               Message
    ----     ------     ----  ----               -------
    Normal   Scheduled  23s   default-scheduler  Successfully assigned default/nginx-85b98978db-z6b2n to minikube
    Normal   Pulling    22s   kubelet            Pulling image &quot;nginx&quot;
    Warning  Failed     7s    kubelet            Failed to pull image &quot;nginx&quot;: rpc error: code = Unknown desc = Error response from daemon: Get &quot;https://registry-1.docker.io/v2/&quot;: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    Warning  Failed     7s    kubelet            Error: ErrImagePull
    Normal   BackOff    7s    kubelet            Back-off pulling image &quot;nginx&quot;
    Warning  Failed     7s    kubelet            Error: ImagePullBackOff
  
  </code></pre>