Skip to content

Commit 221a8da

Browse files
Fix image tag command in test (#6301)
`asCanonicalNameString` includes name and tag, so the result contains the tag twice.
1 parent 9f02274 commit 221a8da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/java/org/testcontainers/DockerRegistryContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public DockerImageName createImage(String originalImage, String tag) {
100100
.withTag(tag);
101101

102102
// push the image to the registry
103-
client.tagImageCmd(dummyImageId, imageName.asCanonicalNameString(), tag).exec();
103+
client.tagImageCmd(dummyImageId, imageName.getUnversionedPart(), tag).exec();
104104

105105
client
106106
.pushImageCmd(imageName.asCanonicalNameString())

0 commit comments

Comments
 (0)