一、该问题的重现步骤是什么?
1. Harbor私有docker仓库。
2. 使用命令 mvn clean package docker:build 推送到镜像
3. 构建出错
Failed to execute goal com.spotify:docker-maven-plugin:1.2.0:build (default-cli) on project SpringBlade: Exception caught: Request error: GET http://192.168.136.131/version: 40
4, body: <!DOCTYPE HTML>
二、你期待的结果是什么?实际看到的又是什么?
可以成功推送到harbor仓库上。
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
blade开源版本,windows操作系统上
四、请提供详细的错误堆栈信息,这很重要。
[INFO] Building image 192.168.136.131/blade/SpringBlade:3.2.0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.778 s
[INFO] Finished at: 2022-02-11T10:27:57+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.2.0:build (default-cli) on project SpringBlade: Exception caught: Request error: GET http://192.168.136.131/version: 40
4, body: <!DOCTYPE HTML>
[ERROR] <html>
[ERROR] <head>
[ERROR] <meta charset="utf-8">
[ERROR] <title>404 - Page Not Found</title>
[ERROR] <style>
[ERROR]
[ERROR] *{
[ERROR] maring: 0;
[ERROR] padding: 0;
[ERROR] }
[ERROR]
[ERROR] a:link{
[ERROR] color: #1f3759;
[ERROR] text-decoration: none;
[ERROR] }
[ERROR] a:active{
[ERROR] color: #1f3759;
[ERROR] text-decoration: none;
[ERROR] }
[ERROR] a:hover{
[ERROR] color: #9fb7d9;
[ERROR] text-decoration: none;
[ERROR] }
[ERROR] a:visited{
[ERROR] color: #1f3759;
[ERROR] text-decoration: none;
[ERROR] }
[ERROR]
[ERROR] a.underline, .underline{
[ERROR] text-decoration: underline;
[ERROR] }
[ERROR]
[ERROR] #content{
[ERROR] margin: 0 auto;
[ERROR] width: 800px;
[ERROR] }
[ERROR]
[ERROR] #main-body{
[ERROR] text-align: center;
[ERROR] }
[ERROR]
[ERROR] .status-code {
[ERROR] font-weight: bolder;
[ERROR] font-size: 4em;
[ERROR] vertical-align: middle;
[ERROR] }
[ERROR]
[ERROR] .status-text {
[ERROR] font-weight: bold;
[ERROR] font-size: 3em;
[ERROR] margin-left: 10px;
[ERROR] vertical-align: middle;
[ERROR] }
[ERROR]
[ERROR] .status-subtitle {
[ERROR] font-size: 18px;
[ERROR] }
[ERROR]
[ERROR] </style>
[ERROR] </head>
[ERROR] <body>
[ERROR] <div id="content">
[ERROR] <div id="main-body">
[ERROR] <div>
[ERROR] <span class="status-code">404</span>
[ERROR] <span class="status-text">Page Not Found</span>
[ERROR] </div>
[ERROR] <div class="status-subtitle">
[ERROR] <p> <a href="/harbor" class="underline">Home</p>
[ERROR] </div>
[ERROR] </div>
[ERROR] </div>
[ERROR] </body>
[ERROR] </html>: HTTP 404 Not Found
[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
PS D:\Users\weiwei\Documents\qunhong-devops-black> mvn clean package docker:build
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端