springboot推送到docker镜像失败

Blade 未结 1 551

一、该问题的重现步骤是什么?

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



五、若有更多详细信息,请在下面提供。

1条回答
  • 2022-02-15 01:43

    这个错只能看出对应地址的服务不对 

    http://192.168.136.131


    另外你看下对应的手册,是否注意点没有处理正确

    image.png

    image.png

    image.png

    image.png

    0 讨论(0)
提交回复