springboot打包成docker镜像异常

异常报错:

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default-cli) on project orangeCharging: Exception caught: java.util.concurrent.ExecutionExceptio
n: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.client.ClientProtocolException: Cannot retry request with a non-repeatable request enti
ty: Connection reset by peer: socket write error -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default-cli) on project orangeCharging: Exceptio
n caught
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

解决方法


image.png

改成


image.png

构建镜像时是使用的是这个变量作为镜像名称,即构建的时候不要出现大写的镜像名称


image.png

你可能感兴趣的:(springboot打包成docker镜像异常)