Spring Boot工程打dockers镜像com.spotify:docker-maven-plugin 报localhost:2375 Connection refused 错误

使用maven的docker插件将Spring Boot工程打包Docker镜像的时候,编译时会报如下错误:

Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project gis-eureka-server: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect -> [Help 1]

Spring Boot工程打dockers镜像com.spotify:docker-maven-plugin 报localhost:2375 Connection refused 错误_第1张图片

解决办法:

查好久发现自己没有安装DOcker.....然后将maven、工程拷贝到Linux中打包。

查资料的过程中找到与我类似的错误的一篇博客:http://blog.csdn.net/chinamcafee/article/details/66974686

其报错是:

Failed to execute goal com.spotify:docker-maven-plugin:0.2.9:build (default-cli) on project config: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused

解决办法:

把docker-maven-plugin版本更新成0.4.13即可

你可能感兴趣的:(云原生,容器化,云计算)