Skip to content

Commit

Permalink
[grid][java]: dynamic grid re-fetch browser images if they were prune…
Browse files Browse the repository at this point in the history
…d during runtime (#13821)

[grid][java]: dynamic grid checks image before creating

Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 authored Apr 16, 2024
1 parent ec5757d commit d04cbb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/src/org/openqa/selenium/docker/ContainerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public ContainerConfig(
this.hostConfig = hostConfig;
}

public Image getImage() {
return this.image;
}

public static ContainerConfig image(Image image) {
return new ContainerConfig(
image,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public CreateContainer(DockerProtocol protocol, HttpHandler client) {
}

public Container apply(ContainerConfig info) {
this.protocol.getImage(info.getImage().getName());
HttpResponse res =
DockerMessages.throwIfNecessary(
client.execute(
Expand Down

0 comments on commit d04cbb5

Please sign in to comment.