【问题标题】:How to configure selenoid to use a specific version of selenoid/video-recorder to be used to record session如何配置 selenoid 以使用特定版本的 selenoid/video-recorder 来记录会话
【发布时间】:2021-07-04 06:26:03
【问题描述】:

有什么方法可以说明在 selenoid 启动时应该使用哪个版本的 selenoid/录像机?在 docker-compose.yml 或命令行中?

我收到以下错误,由于 docker pull 限制问题,所以我需要提及我之前拉的具体版本。

2021/04/08 10:35:59 [909] [5.64s] [SESSION_FAILED] [test] [xxxx] [chrome-89.0] [xxxx:4444] [-] [6] [开始视频容器:创建视频容器:来自守护进程的错误响应:没有这样的图像:selenoid/video-recorder:latest-release]

以下是我的 docker compose 文件。

version: '3'
services:
 selenoid:
   network_mode: bridge
   image: aerokube/selenoid:1.10.1
   volumes:
     - "/opt/selenoid:/etc/selenoid"
     - "/var/run/docker.sock:/var/run/docker.sock"
     - "/opt/selenoid/video:/opt/selenoid/video"
   environment:
     - OVERRIDE_VIDEO_OUTPUT_DIR=/opt/selenium/video
     - TZ=America/Montreal
     - limit=10
   command: ["-conf", "/etc/selenoid/browsers.json", "-video-output-dir", "/opt/selenoid/video"]
   ports:
     - "4444:4444"
 selenoid-ui:
   image: "aerokube/selenoid-ui"
   network_mode: bridge
   links:
     - selenoid
   ports:
     - "8080:8080"
   command: ["--selenoid-uri", "http://selenoid:4444"]

【问题讨论】:

    标签: selenoid


    【解决方案1】:

    可以在command 部分中使用-video-recorder-image 标志指定相应的图像。这里列出了所有可用的标志:https://aerokube.com/selenoid/latest/#_selenoid_cli_flags

    【讨论】:

      猜你喜欢
      • 2021-09-07
      • 1970-01-01
      • 1970-01-01
      • 2021-07-10
      • 2021-08-20
      • 2021-08-22
      • 2021-10-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多