Skip to content

Commit 0bb0d53

Browse files
committed
Merge branch '3.4.x' into 3.5.x
Closes gh-48192
2 parents 7891ebf + 4625534 commit 0bb0d53

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/testing.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,13 @@ include-code::MyDatasourceConfiguration[]
4343
Having a single configuration class can be inefficient when beans from a certain domain need to be included in slice tests.
4444
Instead, structuring the application's configuration as multiple granular classes with beans for a specific domain can enable importing them only for specific slice tests.
4545

46+
47+
48+
[[howto.testing.testcontainers-api-downgrade]]
49+
== Downgrading Testcontainers Docker API Version
50+
51+
Recent versions of Docker Desktop do not support the default API version used by the Testcontainers dependency managed by Spring Boot.
52+
To help prevent issues, Spring Boot ships with `docker-java.properties` files in the `spring-boot-testcontainers` and `spring-boot-test` jars that upgrade the API version that Testcontainers uses.
53+
54+
If you don't want the API version to be changed, you should add a `docker-java.properties` file in your own projects classpath.
55+
An empty file will restore default behavior, or you can set a `api.version` property to whatever value you prefer.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
api.version=1.44
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
api.version=1.44

0 commit comments

Comments
 (0)