title: How to access private Docker Hub repository from Kubernetes on Vagrant
body: <p>I am failing to pull from my private Docker Hub repository into my local Kubernetes setup running on Vagrant:</p>
  
  <blockquote>
    <p>Container "hellonode" in pod "hellonode-n1hox" is waiting to start: image can't be
    pulled</p>
    
    <p>Failed to pull image "username/hellonode": Error: image username/hellonode:latest not found</p>
  </blockquote>
  
  <p>I have set up Kubernetes locally via Vagrant as described <a href="http://kubernetes.io/docs/getting-started-guides/vagrant/" rel="noreferrer">here</a> and created a secret named "dockerhub" with <em>kubectl create secret docker-registry dockerhub --docker-server=<a href="https://registry.hub.docker.com/" rel="noreferrer">https://registry.hub.docker.com/</a> --docker-username=username --docker-password=... --docker-email=...</em> which I supplied as the image pull secret.</p>
  
  <p>I am running Kubernetes 1.2.0.</p>