在docker throw中用maven构build{} – > unix:// localhost:80:没有这样的文件或者导演
我有一个问题,因为我没有以前没有几天。 当我启动./mvnw -Pprod package -DskipTests=true docker:build
在我的容器我有这个日志
[INFO] Copying src/main/docker/app.yml -> /home/jhipster/app/target/docker/app.yml [INFO] Copying src/main/docker/Dockerfile -> /home/jhipster/app/target/docker/Dockerfile [INFO] Copying src/main/docker/postgresql.yml -> /home/jhipster/app/target/docker/postgresql.yml [INFO] Copying src/main/docker/sonar.yml -> /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 {}->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 {}->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 {}->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 {}->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 {}->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 {}->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 -> [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
但是,如果我启动没有生产标志的构build,我没有问题./mvnw -DskipTests=true docker:build
为什么我不能使用docker:build
在我的容器中docker:build
?
谢谢
- 我如何在osx上运行Docker的Windows容器?
- 在Raspberry PI 3上运行nano服务器容器
- Docker在服务器2016虚拟机上
- 如何在Windows 10 Home Edition上为GCE设置Kubernetes和Docker本地环境?
- Windows上的Docker Toolbox:禁用TLS
- 如何使用Docker从Window容器运行GUI应用程序?
- 如何远程连接本地容器到Docker Swarm
- 要运行Windows应用程序的自动化testing没有监视器,我的意思是,我不想要UI,在内存中运行testing
- 从在Docker for Windows上运行的容器中,如何访问主机上的端口?