Skip to content

Commit f629679

Browse files
committed
pull image use latest tag to avoid pulling all tags
1 parent 2c7ba46 commit f629679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/github/dockerjava/core/command/ListContainersCmdImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void testListContainersWithLabelsFilter() throws Exception {
104104
String testImage = "busybox";
105105

106106
// need to block until image is pulled completely
107-
dockerClient.pullImageCmd(testImage).exec(new PullImageResultCallback()).awaitCompletion();
107+
dockerClient.pullImageCmd(testImage).withTag("latest").exec(new PullImageResultCallback()).awaitCompletion();
108108

109109
List<Container> containers = dockerClient.listContainersCmd().withShowAll(true).exec();
110110
assertThat(containers, notNullValue());

0 commit comments

Comments
 (0)