Skip to content

Testcontainers integration fails on Docker 29.0.0 #48104

@ThomasVitale

Description

@ThomasVitale

As discussed in #48050, Docker 29.0.0 introduced a breaking change that cause the Buildpacks integration in Spring Boot to fail. That has been fixed.

There is also a problem with the Testcontainers integration. Unfortunately, the Testcontainers project seems not to be releasing a fix for the 1.x release train, only for 2.x (as explained in testcontainers/testcontainers-java#11212 (comment)). That means the integration in Spring Boot 3.5.x will not work (wheres it will work in Spring Boot 4.x which follows the Testcontainers 2.x release train, assuming the patch is released before Spring Boot 4.0.0 is released).

I'm aware the issue is not in Spring Boot, but in Testcontainers. But if they don't release a fix for 1.x, I thought of suggesting having a workaround in Spring Boot 3.5.x.

It seems like the issue is solved if setting this system property when using Testcontainers:

System.setProperty("api.version", "1.44");

That could be set temporarily when running Testcontainers, as suggested here: testcontainers/testcontainers-java#11212 (comment)

If it's not something desired to be addressed in Spring Boot, I would like to suggest at least documenting this problem and the workaround.

Thanks a lot!

Metadata

Metadata

Assignees

Labels

status: noteworthyA noteworthy issue to call out in the release notestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions