bladex在根目录下执行命令:mvn clean package docker:build docker:push报错

Blade 已结 2 112
半路笙歌
半路笙歌 2024-08-26 15:22

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

1. 执行命令mvn clean package docker:build docker:push

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

可以正常推送打包,推送镜像

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladex

4.1.0

macos

四、请提供详细的错误堆栈信息,这很重要。

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  15.993 s

[INFO] Finished at: 2024-08-26T15:20:40+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.42.0:build (default-cli) on project blade-auth: Unable to pull 'bladex/alpine-java:openjdk17_cn_slim' from registry '121.36.56.***:88' : {"message":"pull access denied for 121.36.56.226:88/bladex/alpine-java, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"} (Not Found: 404) -> [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

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn -rf :blade-auth

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

image.png

2条回答
  •  半路笙歌
    2024-08-26 15:32

    在harbor所在的服务器执行:docker pull bladex/alpine-java:openjdk17_cn_slim


    image.png

提交回复