maven-docker-plugin插件使用报错
<plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.4.10</version> <configuration> <imageName>${project.name}:${project.version}</imageName> <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory> <skipDockerBuild>false</skipDockerBuild> <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}</directory> <include>${project.build.finalName}.jar</include> </resource> </resources> </configuration> </plugin>
mvn clean package -DskipTests docker:build
报错:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.386 s
[INFO] Finished at: 2016-06-13T13:11:28+08:00
[INFO] Final Memory: 70M/800M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project spring-boot: Exception caught: Request error: POST http://172.16.229.50:2376/build?t=spring-boot+Maven+Webapp:0.0.1-SNAPSHOT: 500: HTTP 500 Internal Server Error -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
具体怎么解决的,能不能说下详细的过程?也遇到这个问题了
谁在win7下试过?
哥们 你这个问题 后来 是怎么解决的? 方便的话 代码 能不能发我一份
已经搞定了,3q,另外问一下,你的<server>配的是私有registry认证信息吧?搭建私有registry认证是怎么配置的,通过nginx ?
回复
搞定就好,记得最佳答案哦。没用nginx,就是registry的用户名和密码,这是之前搭建的,现在registry可以用portus或者harbor做管理
回复
研究下,3q