Skip to content

Commit d04cbb5

Browse files
authored
[grid][java]: dynamic grid re-fetch browser images if they were pruned during runtime (#13821)
[grid][java]: dynamic grid checks image before creating Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent ec5757d commit d04cbb5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

java/src/org/openqa/selenium/docker/ContainerConfig.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public ContainerConfig(
8484
this.hostConfig = hostConfig;
8585
}
8686

87+
public Image getImage() {
88+
return this.image;
89+
}
90+
8791
public static ContainerConfig image(Image image) {
8892
return new ContainerConfig(
8993
image,

java/src/org/openqa/selenium/docker/v1_41/CreateContainer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public CreateContainer(DockerProtocol protocol, HttpHandler client) {
5252
}
5353

5454
public Container apply(ContainerConfig info) {
55+
this.protocol.getImage(info.getImage().getName());
5556
HttpResponse res =
5657
DockerMessages.throwIfNecessary(
5758
client.execute(

0 commit comments

Comments
 (0)