title: Build with maven in docker throw {}->unix://localhost:80: No such file or director
body: <p>I have an issue since few days I didn't have before. When I launch <code>./mvnw -Pprod package -DskipTests=true docker:build</code> in my container I have this log</p>
  
  <pre><code>[INFO] Copying src/main/docker/app.yml -&gt; /home/jhipster/app/target/docker/app.yml
  [INFO] Copying src/main/docker/Dockerfile -&gt; /home/jhipster/app/target/docker/Dockerfile
  [INFO] Copying src/main/docker/postgresql.yml -&gt; /home/jhipster/app/target/docker/postgresql.yml
  [INFO] Copying src/main/docker/sonar.yml -&gt; /home/jhipster/app/target/docker/sonar.yml
  [INFO] Building image projectName
  May 03, 2017 8:50:21 PM org.apache.http.impl.execchain.RetryExec execute
  INFO: I/O exception (java.io.IOException) caught when processing request to {}-&gt;unix://localhost:80: No such file or directory
  May 03, 2017 8:50:21 PM org.apache.http.impl.execchain.RetryExec execute
  INFO: Retrying request to {}-&gt;unix://localhost:80
  May 03, 2017 8:50:21 PM org.apache.http.impl.execchain.RetryExec execute
  INFO: I/O exception (java.io.IOException) caught when processing request to {}-&gt;unix://localhost:80: No such file or directory
  May 03, 2017 8:50:21 PM org.apache.http.impl.execchain.RetryExec execute
  INFO: Retrying request to {}-&gt;unix://localhost:80
  May 03, 2017 8:50:21 PM org.apache.http.impl.execchain.RetryExec execute
  INFO: I/O exception (java.io.IOException) caught when processing request to {}-&gt;unix://localhost:80: No such file or directory
  May 03, 2017 8:50:21 PM org.apache.http.impl.execchain.RetryExec execute
  INFO: Retrying request to {}-&gt;unix://localhost:80
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 06:23 min
  [INFO] Finished at: 2017-05-03T20:50:21+00:00
  [INFO] Final Memory: 63M/226M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build (default-cli) on project projectName: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException: No such file or directory -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p>But if I launch the build without the production flag I don't have issue <code>./mvnw  -DskipTests=true docker:build</code></p>
  
  <p>Why I can't use <code>docker:build</code> in my container ?</p>
  
  <p>Thanks</p>