torgeilo.github.io

Google Chrome versions in Selenium node-chrome docker images

Updated

To find a selenium/node-chrome docker image for:

Chrome and node-chrome versions table

Download the CSV file.

Example docker-compose.yml configuration

Note: The example might not be 100% correct or optimal, but it seems to work fine for several of the v3 Selenium images.

The major version of the node docker image has to match the version of the Selenium hub image. v3 Selenium servers fail to register with v4 Selenium hubs. The Selenium capabilities must match1 as well, when connecting to the hub with a driver.

docker-compose.yml

version: "3.5"

services:
  selenium-hub:
    image: selenium/hub:3
    container_name: selenium-hub
    ports:
      - "4444:4444"

  chrome63:
    image: selenium/node-chrome:3.8.1-bohrium
    shm_size: 2gb
    depends_on:
      - selenium-hub
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
    environment:
      - HUB_PORT_4444_TCP_ADDR=selenium-hub
      - HUB_PORT_4444_TCP_PORT=4444

How to find the Google Chrome version of a selenium/node-chrome image

Run:

docker run selenium/node-chrome:<tag> google-chrome --version

where <tag> is replaced with the actual tag. For example:

> docker run --quiet --rm selenium/node-chrome:3.8.1-bohrium google-chrome --version
Google Chrome 63.0.3239.84