<p>I'm trying to deploy Lagom microservices on Kubernetes by following-up the Chirper Lagom example. So According to the provided guide <a href="https://developer.lightbend.com/guides/lagom-kubernetes-k8s-deploy-microservices/" rel="nofollow noreferrer">link</a>, I configured a kubernetes cluster by installing Minikube and everything is good.</p>

<p>But when I tried to build Chirper Docker images by using fabric8’s docker-maven-plugin, I got this error:</p>

<blockquote>
  <p>[ERROR] Failed to execute goal
  io.fabric8:docker-maven-plugin:0.20.1:build (default-cli) on project
  friend-impl: Execution default-cli of goal
  io.fabric8:docker-maven-plugin:0.20.1:build failed: No 
  given, no DOCKER_HOST environment variable, no read/writable
  '/var/run/docker.sock' or '//./pipe/docker_engine' and no external
  provider like Docker machine configured -> [Help 1]</p>
</blockquote>

<p>Is there anyone that can help me to understand that error? Thanks.</p>

<p>[Updating based on discussions in comments]</p>

<p>The issue here is that the Docker CLI is not able to reach the Docker Engine. Since you are using Minikube, you can point docker CLI to Docker engine inside Minikube. That will ensure that images are built inside minikube VM and also ran there subsequently. You can run command:</p>

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

<p>This command will set the parameters required by Docker CLI to communicate with Docker engine in Minikube and it should be able to run command which is failing for you!</p>
