Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
standup-jb opened this issue Mar 3, 2018 · 1 comment
Open

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

standup-jb opened this issue Mar 3, 2018 · 1 comment

Comments

@standup-jb
Copy link

按照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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant