From cdb233006b84ae3cd4afed7f54733092145cea65 Mon Sep 17 00:00:00 2001 From: SoMuchForSubtlety Date: Mon, 12 Dec 2022 17:25:57 +0100 Subject: [PATCH] Fix image tag command in test `asCanonicalNameString` includes name and tag, so the result contains the tag twice. --- .../test/java/org/testcontainers/DockerRegistryContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/testcontainers/DockerRegistryContainer.java b/core/src/test/java/org/testcontainers/DockerRegistryContainer.java index a907c674386..956bb9fff9e 100644 --- a/core/src/test/java/org/testcontainers/DockerRegistryContainer.java +++ b/core/src/test/java/org/testcontainers/DockerRegistryContainer.java @@ -100,7 +100,7 @@ public DockerImageName createImage(String originalImage, String tag) { .withTag(tag); // push the image to the registry - client.tagImageCmd(dummyImageId, imageName.asCanonicalNameString(), tag).exec(); + client.tagImageCmd(dummyImageId, imageName.getUnversionedPart(), tag).exec(); client .pushImageCmd(imageName.asCanonicalNameString())