【问题标题】:Docker: Selenium Hub and a Chrome Node errors with [SEVERE]: bind() failed: Cannot assign requested address (99)Docker:Selenium Hub 和 [SEVERE] 的 Chrome 节点错误:bind() 失败:无法分配请求的地址 (99)
【发布时间】:2019-06-20 17:50:30
【问题描述】:

我们的 NightwatchJs 测试开始因错误而失败

Starting ChromeDriver 75.0.3770.8 (681f24ea911fe754973dda2fdc6d2a2e159dd300-refs/branch-heads/3770@{#40}) on port 13969
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1561022833.301][SEVERE]: bind() failed: Cannot assign requested address (99)

我们正在使用 docker 设置带有 Chrome 节点的 Selenium 集线器/网格。关于如何降级到 ChromeDriver 74 版的任何想法?

【问题讨论】:

    标签: selenium docker docker-compose selenium-chromedriver nightwatch.js


    【解决方案1】:

    我通过为 chrome 节点选择特定图像来暂时修复版本:

    version: "3"
    services:
      selenium-hub:
        image: selenium/hub
        ports:
          - "4444"
      chrome-node:
        # Fix Chrome version to 74, as 75 errors with [SEVERE]: bind() failed: Cannot assign requested address (99)
        image: selenium/node-chrome:3.141.59-oxygen
        depends_on:
          - selenium-hub
        environment:
          - HUB_HOST=selenium-hub
          - HUB_PORT=4444
        ports:
          - "5555"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-12
      • 1970-01-01
      • 2023-03-11
      • 2017-09-13
      • 1970-01-01
      • 1970-01-01
      • 2017-04-13
      • 2020-09-27
      相关资源
      最近更新 更多