编译构建 CODEARTS BUILD-推送镜像到SWR失败:推送镜像提示本地镜像不存在

时间:2023-12-05 10:22:18

推送镜像提示本地镜像不存在

错误日志

[2022-03-05 17:01:05.816] An image does not exist locally with the tag: 
swr.example.example.com/demo/faqdemo1 
 [ERROR] : [pluginFrame] step run failed, errorMessage: fail to execute docker command.

分析处理

此类错误一般为镜像制作失败或push命令中镜像名、标签等信息填写错误,导致push命令中期望的镜像与build/tag命令中实际生成的镜像不一致,需要检查镜像制作过程或push参数是否正确。

此例中镜像docker push swr.example.example.com/demo/faqdemo1:v1.1 中faqdemo1填写错误,build参数中指定的镜像名为faqdemo,修正push参数后再试即可。

support.huaweicloud.com/codeci_faq/codeci_faq_1042.html