【Docker】在本地打包maven程序为docker镜像报错: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1]

前端之家收集整理的这篇文章主要介绍了【Docker】在本地打包maven程序为docker镜像报错: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1]前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

错误信息:

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default-cli) on project farm: 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]

我的错误原因是我没有打开本地的docker 2375端口

打开方式:右击右下角的小鲸鱼(我用的是docker for window),点击settings如下图

猜你在找的Docker相关文章