<p>I am attempting to use Minikube for local kubernetes development.  I have set up my docker environment to use the docker daemon running in the provided Minikube VM (boot2docker) as suggested:</p>

<pre><code>eval $(minikube docker-env)
</code></pre>

<p>It sets up these environment variables:</p>

<pre><code>export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/home/jasonwhite/.minikube/certs"
</code></pre>

<p>When I attempt to pull an image from our private docker repository:</p>

<pre><code>docker pull oururl.com:5000/myimage:v1
</code></pre>

<p>I get this error:</p>

<pre><code>Error response from daemon: Get https://oururl.com:5000/v1/_ping: x509: certificate signed by unknown authority
</code></pre>

<p>It appears I need to add a trusted ca root certificate somehow, but have been unsuccessful so far in my attempts. </p>

<p>I can hit the repository fine with curl using our ca root cert:</p>

<pre><code>curl --cacert /etc/ssl/ca/ca.pem https://oururl.com:5000/v1/_ping
</code></pre>

<p>I've been unable to find anyway to get the cert into the minikube vm. But, minikube has a command line parameter to pass in an insecure-registry.</p>

<pre><code>minikube start --insecure-registry=&lt;HOST&gt;:5000 
</code></pre>

<p>Then to configure authentication on the registry, create a secret.</p>

<pre><code>kubectl create secret docker-registry tp-registry --docker-server=&lt;REGISTRY&gt;:5000 --docker-username=&lt;USERNAME&gt; --docker-password=&lt;PASSWORD&gt; --docker-email=&lt;EMAIL&gt; --insecure-skip-tls-verify=true
</code></pre>

<p>Add secret to the default service account as described in the <a href="http://kubernetes.io/docs/user-guide/service-accounts/#adding-imagepullsecrets-to-a-service-account" rel="nofollow">kubernetes docs</a>.</p>
