Skip to content

Commit f143f0d

Browse files
committed
Polishing.
1 parent 0412036 commit f143f0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/testing/Db2DataSourceConfiguration.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.springframework.jdbc.datasource.DriverManagerDataSource;
2525
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator;
2626
import org.testcontainers.db2.Db2Container;
27+
import org.testcontainers.utility.DockerImageName;
2728

2829
/**
2930
* {@link DataSource} setup for DB2.
@@ -50,7 +51,9 @@ protected DataSource createDataSource() {
5051
if (DB_2_CONTAINER == null) {
5152

5253
LOG.info("DB2 starting...");
53-
Db2Container container = new Db2Container(DOCKER_IMAGE_NAME).withReuse(true);
54+
Db2Container container = new Db2Container(
55+
DockerImageName.parse(DOCKER_IMAGE_NAME).asCompatibleSubstituteFor("icr.io/db2_community/db2"))
56+
.withReuse(true);
5457
container.start();
5558
LOG.info("DB2 started");
5659

0 commit comments

Comments
 (0)