From 651f3413852de60fd44885ae2b73635100453114 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 18 Apr 2023 19:52:17 +0100 Subject: [PATCH] Fix compatibility of Redpanda Docker image name See 3e010b12 --- .../boot/testsupport/testcontainers/DockerImageNames.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/testcontainers/DockerImageNames.java b/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/testcontainers/DockerImageNames.java index 65f1a0e42c..f07904acd7 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/testcontainers/DockerImageNames.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/testcontainers/DockerImageNames.java @@ -145,7 +145,9 @@ public final class DockerImageNames { * @return a docker image name for running redpanda */ public static DockerImageName redpanda() { - return DockerImageName.parse("redpandadata/redpanda").withTag(REDPANDA_VERSION); + return DockerImageName.parse("redpandadata/redpanda") + .withTag(REDPANDA_VERSION) + .asCompatibleSubstituteFor("docker.redpanda.com/redpandadata/redpanda"); } /**