执行mvn package docker:build无法正常生成镜像
standup-jb opened this issue · 1 comments
standup-jb commented
按照README.md的流程进行操作。执行命令‘ mvn clean package ’时报错。
Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default-cli) on project spring-boot-cloud: Exception caught: basedir /Users/jiangbiao/Documents/Spring-boot/spring-boot-cloud/target does not exist -> [Help 1]
standup-jb commented
我百度到了问题怎么解决。如果是Windows的电脑
Go to your notification tab, right click the Whale Icon and then click Settings.
In the first page in the very end you will have “Expose daemon tcp://localhost:2375 without TLS” check this box
Linux DOCKER_HOST=unix:///var/run/docker.sock mvn clean install
参考解决方案的链接:
https://forums.docker.com/t/spotify-docker-maven-plugin-cant-connect-to-localhost-2375/9093/6