gpt4 book ai didi

windows - 在docker throw {}-> unix://localhost:80中使用Maven进行构建:没有这样的文件或目录

转载 作者:行者123 更新时间:2023-12-02 20:15:26 28 4
gpt4 key购买 nike

我有一个问题,因为几天没来过。当我在容器中启动./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

但是,如果我在没有生产标志的情况下启动构建,则不会发出 ./mvnw -DskipTests=true docker:build
为什么我不能在容器中使用 docker:build

谢谢

最佳答案

您的docker守护程序可能未运行。确保它正在运行,然后重试

关于windows - 在docker throw {}-> unix://localhost:80中使用Maven进行构建:没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43776779/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com