zhangxd1989 / spring-boot-cloud

基于 Spring Boot、Spring Cloud、Spring Oauth2 和 Spring Cloud Netflix 等框架构建的微服务项目
2.13k stars 1.17k forks source link

执行mvn package docker:build无法正常生成镜像 #17

Open standup-jb opened 6 years ago

standup-jb commented 6 years ago

按照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 6 years ago

我百度到了问题怎么解决。如果是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