Skip to content

Unable to build docker image with Spring Boot 3.5.10 and 4.0.2 using Docker 29 #49214

@wimdeblauwe

Description

@wimdeblauwe

We are running into issue actions/runner-images#13474 since today.

As a test, I ran this:

  1. Clean Ubuntu 24.04
  2. Install Docker (which gives 29.2.1)
  3. Install SDKMan to install Java 21 and Maven 3.9.12
  4. Generate a default Spring Boot application:
curl -G https://start.spring.io/starter.zip -d javaVersion=21 -d bootVersion=3.5.10 -d type=maven-project -o demo.zip
  1. Unzip the project and run mvn spring-boot:build-image

This results in:

[INFO]     [creator]     Setting default process type 'web'
[INFO]     [creator]     Saving docker.io/library/demo:0.0.1-SNAPSHOT...
[INFO]     [creator]     ERROR: failed to export: saving image: failed to fetch base layers: saving image with ID "sha256:3553c27d0e2262b61c191e34bc9488f9bf5bd5590865699dba8e5e09db8fc555" from the docker daemon: Error response from daemon: No such image: sha256:3553c27d0e2262b61c191e34bc9488f9bf5bd5590865699dba8e5e09db8fc555
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.135 s
[INFO] Finished at: 2026-02-13T11:23:09+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.5.10:build-image (default-cli) on project demo: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:3.5.10:build-image failed: Builder lifecycle 'creator' failed with status code 62 -> [Help 1]

I also tested with Spring Boot 4.0.2, but the error is the same:

[INFO]     [creator]     Setting default process type 'web'
[INFO]     [creator]     Saving docker.io/library/demo:0.0.1-SNAPSHOT...
[INFO]     [creator]     ERROR: failed to export: saving image: failed to fetch base layers: saving image with ID "sha256:3553c27d0e2262b61c191e34bc9488f9bf5bd5590865699dba8e5e09db8fc555" from the docker daemon: Error response from daemon: No such image: sha256:3553c27d0e2262b61c191e34bc9488f9bf5bd5590865699dba8e5e09db8fc555
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.623 s
[INFO] Finished at: 2026-02-13T11:32:17+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:4.0.2:build-image (default-cli) on project demo: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:4.0.2:build-image failed: Builder lifecycle 'creator' failed with status code 62 -> [Help 1]

At first, we thought it might have to do something with #48050, but that gives a different error which I get if I try Spring Boot 3.5.7. So it seems this is a different error.

Any idea on how to workaround or fix this is very welcome as this blocks us from deploying any new version of our applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions