Skip to content

Commit 9f1ee67

Browse files
committed
Merge branch '3.2.x'
Closes gh-41123
2 parents c2c41c9 + 03a87cc commit 9f1ee67

File tree

1 file changed

+2
-1
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/testing

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ For example, a `PostgreSQLContainer` will create both `JdbcConnectionDetails` an
101101
If you want to create only a subset of the applicable types, you can use the `type` attribute of `@ServiceConnection`.
102102
====
103103

104-
By default `Container.getDockerImageName()` is used to obtain the name used to find connection details.
104+
By default `Container.getDockerImageName().getRepository()` is used to obtain the name used to find connection details.
105+
The repository portion of the Docker image name ignores any registry and the version.
105106
This works as long as Spring Boot is able to get the instance of the `Container`, which is the case when using a `static` field like in the example above.
106107

107108
If you're using a `@Bean` method, Spring Boot won't call the bean method to get the Docker image name, because this would cause eager initialization issues.

0 commit comments

Comments
 (0)