I have a quite simple Spring Boot app building Docker images for Azure. Probably Azure is not relevant to the problem. The image is built using the Spring Boot Gradle plugin, using the bootBuildImage
task.
Now, suddenly, with otherwise unchanged code, the build started to fail:
> Task :backend:bootBuildImage FAILED
…
… Invalid response received when loading image "pack.local/builder/uxjmhhddud:latest"
The name of the image changes with each run, looks like a temporary intermediate image that cannot be read.
What causes this failure and what can be done about it?
Edit: More log context:
> Task :backend:bootBuildImage
Building image 'docker.io/library/backend:latest'
> Pulling builder image 'docker.io/paketobuildpacks/builder@sha256:edb18b93f138def92ada50bebdffa05983b13a5f5c4df6af75a40f2275d092ed' ..................................................
> Pulled builder image 'paketobuildpacks/builder@sha256:edb18b93f138def92ada50bebdffa05983b13a5f5c4df6af75a40f2275d092ed'
> Pulling run image 'docker.io/paketobuildpacks/run@sha256:c6a219b27b2009cf99d92bc4a667ceb81822074406809d6c87e3dce906349546' ..................................................
> Pulled run image 'paketobuildpacks/run@sha256:c6a219b27b2009cf99d92bc4a667ceb81822074406809d6c87e3dce906349546'
> Pulling buildpack image 'gcr.io/paketo-buildpacks/java-azure:latest' ..................................................
> Pulled buildpack image 'gcr.io/paketo-buildpacks/java-azure@sha256:704f74c1cc11cbe8cc5702a63cd77aa4c476d9051f022aabb7188bdc5e3fd2fc'
> Task :backend:bootBuildImage FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':backend:bootBuildImage'.
> Invalid response received when loading image "pack.local/builder/xojqjhijta:latest"