title: Run private docker image on minikube k8s
body: <p><a href="https://i.stack.imgur.com/qTgn9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qTgn9.png" alt="This is the error i get after using secret "></a>I want to run a private docker image on my minikube k8s .
  But the pod is never able to pull my image from docker .</p>
  
  <p>How can i pull private image in k8s and use it?</p>
  
  <p>This my yaml for pod
  <code>{apiVersion: v1
  kind: Pod
  metadata:
    name: privaterepo
  spec:
    containers:
    - name: private-reg-container
      image: raveena1/test
    imagePullSecrets:
    - name: regsecret}
  </code></p>
  
  <p></p>
  
  <p>The log is:-
  container "private-reg-container" in pod "privaterepo" is waiting to start: trying and failing to pull image</p>