Docker: Error response from daemon: client version is too new

Quick deployment to AWS is failing during bootBuildImage with the error “ERROR: failed to initialize analyzer: getting previous image: Error response from daemon: client version 1.52 is too new. Maximum supported API version is 1.41”.
Jmix 1.6.2 / IntelliJ 2025.1.3.
Updating Docker server side is not an option right now.

It seems that builder-jammy-base:latest started using a much higher docker client API version.
Seemingly this has to do with lifecycle version v0.21.0.
A very similar issue is discussed here: Spring Boot Maven Plugin OCI builds failing due to builder-jammy-java-tiny · Issue #48575 · spring-projects/spring-boot · GitHub

How is it possible to make the build process use a lower client version (i.e. 1.41)?
Setting the environment variable DOCKER_API_VERSION=1.41 in IntelliJ for the bootBuildImage task has not worked.

Any known workarounds here?

Thank you.

Hi,

This can happen if task that was modified is not the task what actually interacts with Docker.

  • At first stop all daemons (./gradlew --stop) and retry.
  • If you executed task from Gradle Tools Window - try to create a new run configuration, use bootBuildImage, add env variable and run this configuration.
  • Try to add systemProp.DOCKER_API_VERSION=1.41 to gradle.properties.

Regards,
Ivan