gpt4 book ai didi

docker - docker build在jhipster中失败

转载 作者:行者123 更新时间:2023-12-02 20:17:22 25 4
gpt4 key购买 nike

有人可以为我指出以下错误的正确方向吗?
我已设置DOCKER_HOST(192.168.99.100:2376)

我在Windows框中输入了以下命令:

mvnw package -Pprod docker:build -DskipTests -e

一切正常,但是在构建镜像时,出现以下错误:

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project truup: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.client.ClientProtocolException: The server failed to respond with a valid HTTP response -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project truup: Exception caught at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)

最佳答案

听起来像ClientProtocolException (Windows 10 using Docker Toolbox)所述。

检查以下环境变量:

set DOCKER_HOST=tcp://192.168.99.100:2376
set DOCKER_MACHINE_NAME=default
set DOCKER_TLS_VERIFY=1
set DOCKER_TOOLBOX_INSTALL_PATH=C:\Program Files\Docker Toolbox
set DOCKER_CERT_PATH=C:\Users\myuserhere.docker\machine\machines\default

关于docker - docker build在jhipster中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41652054/

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