title: can't build my own docker image using fabric8 maven plugin
body: <p>I'm trying to build my own dokcer image based on a simple spring boot projet, using the fabric8 maven plugin, here is my configuration </p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;io.fabric8&lt;/groupId&gt;
              &lt;artifactId&gt;docker-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.33.0&lt;/version&gt;
  
              &lt;configuration&gt;
                  &lt;dockerHost&gt;tcp://localhost:2375&lt;/dockerHost&gt;
                  &lt;verbose&gt;true&lt;/verbose&gt;
                  &lt;images&gt;
                      &lt;image&gt;
                          &lt;name&gt;${docker.image.prefix}/${docker.image.name}&lt;/name&gt;
                          &lt;build&gt;
                              &lt;dockerFileDir&gt;${project.basedir}/src/main/docker/&lt;/dockerFileDir&gt;
                              &lt;assembly&gt;
                                  &lt;descriptorRef&gt;artifact&lt;/descriptorRef&gt;
                              &lt;/assembly&gt;
                              &lt;tags&gt;
                                  &lt;tag&gt;latest&lt;/tag&gt;
                                  &lt;tag&gt;${project.version}&lt;/tag&gt;
                              &lt;/tags&gt;
                          &lt;/build&gt;
                      &lt;/image&gt;
                  &lt;/images&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>I'm exposing my docker doamon as suggested on other posts, but nothing works when i run this command line inside my Intellij</p>
  
  <pre><code>mvn clean package docker:run
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/OF5kQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OF5kQ.png" alt="enter image description here"></a></p>
  
  <p>I'm getting this stack trace</p>
  
  <pre><code>[INFO] --- docker-maven-plugin:0.33.0:run (default-cli) @ spring-boot-docker ---
  [INFO] DOCKER&gt; Credentials helper reply for "docker-credential-desktop" is 0.6.3
  [ERROR] DOCKER&gt; Error occurred during container startup, shutting down...
  [ERROR] DOCKER&gt; I/O Error [Unable to pull 'sofrateam/springbootdocker:latest' : {"message":"pull access denied for sofrateam/springbootdocker, repository does not exist or may require 'docker login': denied: re
  quested access to the resource is denied"} (Not Found: 404)]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  12.442 s
  [INFO] Finished at: 2020-04-21T09:56:15+02:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.33.0:run (default-cli) on project spring-boot-docker: I/O Error: Unable to pull 'sofrateam/springbootdocker:latest' : {"message":"pull access deni
  ed for sofrateam/springbootdocker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"} (Not Found: 404) -&gt; [Help 1]
  </code></pre>
  
  <p>Do i need to create a local docker hub on my machine ( Docker Desktop).
  The probleme is that when i use the command line window CMD, and i go where the docker file exist and i run the command line </p>
  
  <pre><code>docker build -t sofrateam/springbootdocker .
  </code></pre>
  
  <p>It works correctly , the image appear in the list of images inside my docker desktop !!! why whit maven plugin and the docker host filed is's not working ?? </p>