我正在尝试在jenkins服务器上的docker容器中安装带有chrome浏览器的Bonigarcia webdrivermanager java。Webdrivermanager无法从码头集线器中提取码头形象。我有5.1.0版的webdrivermanager。我得到以下例外:
10:26:22.110 [main] INFO io.github.bonigarcia.wdm.docker.DockerService - Pulling Docker image selenoid/vnc:chrome_99.0 (this might take some time, but only the first time)
10:26:22.225 [docker-java-stream-550739255] ERROR com.github.dockerjava.api.async.ResultCallbackTemplate - Error during callback
com.github.dockerjava.api.exception.BadRequestException: Status 400: Client sent an HTTP request to an HTTPS server.
at com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:237)
at com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)
at java.lang.Thread.run(Thread.java:748)
10:26:22.225 [main] WARN io.github.bonigarcia.wdm.docker.DockerService - Exception pulling image selenoid/vnc:chrome_99.0: Status 400: Client sent an HTTP request to an HTTPS server.这是我的webdrivermanager设置:
WebDriverManager
.chromedriver()
.browserInDocker()
.create();我已经尝试了以下方法,但仍然得到了相同的例外:
中。
有什么想法,什么可能是错的,或者我还能尝试什么?
发布于 2022-03-31 13:23:18
这似乎与您的码头引擎的配置有关。有相关的职位,如this。
https://stackoverflow.com/questions/71673439
复制相似问题