1

我们最近开始使用 Gradle 的 bootBuildImage 任务来构建 docker 镜像。在本地,我们可以毫无问题地成功构建镜像,但是我们的 Jenkins 构建有时会随机失败并出现以下错误:

FAILURE: Build failed with an exception.

 What went wrong:
Execution failed for task ':dockerTestImage:bootBuildImage'.
> Docker API call to 'localhost/v1.24/images/pack.local/builder/zuslfxipuv:latest?force=1' failed with status code 500 "Internal Server Error" and message "unrecognized image ID sha256:xxxxx"

再次运行构建解决了这个问题。有没有人遇到过同样的问题?

项目中使用的版本:

  • 弹簧启动版本:2.5.0

  • jdk版本:11

  • 毕业版本:6

4

0 回答 0