<p>I want to deploy K8s artifacts to minikube which it's docker images are not available on Docker Hub. Images are build locally when I build my project.</p>
<p>When I build my project the images are build locally. But I can't deploy the K8s artifacts to minikube because the images are simply not available locally to docker host inside minikube.</p>
<p>Therefore I need a method to build my project inside minikube's docker host</p>

Rumesh Madhusanka
<p>You can use <code>eval $(minikube docker-env)</code> to connect to the docker daemon from minikube (in your current terminal). Afterwards you can use any docker command which will run against the docker daemon from minikube.</p>
<p>So you can use <code>docker build ...</code>, which will store the images in the registry from minikube.</p>
<p>e.g.</p>
<pre><code>eval $(minikube docker-env)
docker build -t my-app-image .
</code></pre>
<p>Documentation can be found at the <a href="https://minikube.sigs.k8s.io/docs/handbook/pushing/#1-pushing-directly-to-the-in-cluster-docker-daemon-docker-env" rel="nofollow noreferrer">minkube doc</a></p>
