Skip to content

Commit

Permalink
Change image used for test to avoid image name cache preventing prope…
Browse files Browse the repository at this point in the history
…r pull
  • Loading branch information
rnorth committed Oct 21, 2020
1 parent eeecf94 commit 99ba2c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public class AmbiguousImagePullTest {
public void testNotUsingParse() {
DockerClient client = DockerClientFactory.instance().client();
List<Image> alpineImages = client.listImagesCmd()
.withImageNameFilter("alpine:latest")
.withImageNameFilter("testcontainers/helloworld:latest")
.exec();
for (Image alpineImage : alpineImages) {
client.removeImageCmd(alpineImage.getId()).exec();
}

try (
final GenericContainer<?> container = new GenericContainer<>(DockerImageName.parse("alpine"))
final GenericContainer<?> container = new GenericContainer<>(DockerImageName.parse("testcontainers/helloworld"))
.withCommand("/bin/sh", "-c", "sleep 0")
.withStartupCheckStrategy(new OneShotStartupCheckStrategy())
) {
Expand Down

0 comments on commit 99ba2c3

Please sign in to comment.