File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
spring-data-jdbc/src/test/java/org/springframework/data/jdbc/testing Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2424import org .springframework .jdbc .datasource .DriverManagerDataSource ;
2525import org .springframework .jdbc .datasource .init .ResourceDatabasePopulator ;
2626import 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
You can’t perform that action at this time.
0 commit comments