Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

docker-selenium

> DevOps
Open source

Provides a simple way to run Selenium Grid with Chrome, Firefox, and Edge using Container Platform, making it easier to perform browser automation at scale

8.6K stars0 likes2 views
WebsiteGitHub

About

Provides a simple way to run Selenium Grid with Chrome, Firefox, and Edge using Container Platform, making it easier to perform browser automation at scale

Docker images for the Selenium Grid Server

The project is made possible by volunteer contributors who have put in thousands of hours of their own time, and made the source code freely available under the Apache License 2.0.

These Docker images come with a handful of tags to simplify its usage, have a look at them in one of our releases.

To get notifications of new releases, add yourself as a "Releases only" watcher.

These images are published to the Docker Hub registry at Selenium Docker Hub.

  • Hub:
  • Node-Chrome:
  • Standalone-Chrome:

Helm Chart enables the creation of a Selenium Grid Server in Kubernetes at

Community

Do you need help to use these Docker images? Talk to us at https://www.selenium.dev/support/

Contents

  • Community
  • Contents
  • System Recommendations
  • Quick start
    • Try them out in a ready-to-use GitPod environment!
  • Experimental Multi-Arch amd64/aarch64/armhf Images
  • Nightly Images
  • Dev and Beta Channel Browser Images
    • Dev and Beta Standalone Mode
    • Dev and Beta on the Grid
  • Single Node/Standalone Image With All Browsers
  • Environment Variables
  • Execution modes
    • Standalone
    • Hub and Nodes
    • Fully distributed mode - Router, Queue, Distributor, EventBus, SessionMap and Nodes
  • Video recording
  • Video recording with dynamic file name based on metadata in tests
  • Video recording and uploading
  • Retain recordings for failed sessions only
  • Dynamic Grid
    • Configuration example
    • Share volumes config of Dynamic Grid container to node browser containers
    • Execution with Hub & Node roles
    • Execution with Standalone roles
    • Using Dynamic Grid in different machines/VMs
    • Execution with Docker Compose
    • Configuring the child containers
    • Video recording, screen resolution, and time zones in a Dynamic Grid
    • Time zone configuration via env variable
  • Deploying to Kubernetes
  • Configuring the containers
    • SE_OPTS Selenium Configuration Options
    • SE_JAVA_OPTS Java Environment Options
    • SE_BROWSER_ARGS_* Add arguments for launching browser
    • Node configuration options
    • Node configuration relay commands
    • Setting Sub Path
    • Setting Screen Resolution
    • Grid Url and Session Timeout
    • Session request timeout
    • Increasing session concurrency per container
    • Running in Headless mode
    • Stopping the Node/Standalone after N sessions have been executed
    • Automatic browser leftovers cleanup
    • Mask sensitive information in console logs
    • Secure Connection
    • Browser language and locale
    • Managing processes in container
  • Building the images
  • Build the images with specific versions
  • Upgrade browser version in the images
  • Upgrade browser and driver versions in the images
  • Waiting for the Grid to be ready
    • Adding a HEALTHCHECK to the Grid
    • Using a bash script to wait for the Grid
  • Install certificates for Chromium-based browsers
  • Alternative method: Add certificates to existing Selenium based images for browsers
  • Debugging
    • Using a VNC client
    • Using your browser (no VNC client is needed)
    • Disabling VNC
  • Tracing in Grid
  • Troubleshooting
    • --shm-size="2g"
    • Headless
    • Mounting volumes to retrieve downloaded files
    • Mounting volumes to retrieve video files
  • Stargazers over time

System Recommendations

  • Docker Engine 26.1.4 or later
  • Docker Compose v2.34.0 or later
  • Docker Buildx v0.25.0 or later
  • Kubernetes v1.26.15 or later

Quick start

  1. Start a Docker container with Firefox
bash
docker run -d -p 4444:4444 -p 7900:7900 --shm-size="2g" selenium/standalone-firefox:4.48.0-20260905
  1. Point your WebDriver tests to http://localhost:4444

  2. That's it!

  3. (Optional) To see what is happening inside the container, head to http://localhost:7900/?autoconnect=1&resize=scale&password=secret.

For more details about visualising the container activity, check the Debugging section.

:point_up: When executing docker run for an image that contains a browser please use the flag --shm-size=2g to use the host's shared memory.

:point_up: Always use a Docker image with a full tag to pin a specific browser and Grid version. See Tagging Conventions for details.

Try them out in a ready-to-use GitPod environment!


Experimental Multi-Arch amd64/aarch64/armhf Images

From image tag based 4.21.0 onwards, the architectures supported by this project are as below:

Architecture Available
x86_64 (aka amd64) ✅
aarch64 (aka arm64/armv8) ✅
armhf (aka arm32/armv7l) ❌

Browser images in multi-arch

The following browsers are available in multi-arch images:

Architecture Chrome Chromium Firefox Edge CfT
x86_64 (aka amd64) ✅ ✅ ✅ ✅ ✅
aarch64 (aka arm64/armv8) ✅ ✅ ✅ ❌ ❌
armhf (aka arm32/armv7l) ❌ ❌ ❌ ❌ ❌

Note:

  • Running an AMD64 image under emulation on an ARM64 platform is not recommended due to performance and stability issues, or browsers could not launch.

  • Google Chrome (google-chrome) now is available for Linux/ARM64 via APT stable channel from v150+. The Chrome (node and standalone) images are available in multi-arch. Older Chrome versions remain AMD64 only; the supported platforms per version are tracked in the browser matrix via the CHROME_PLATFORMS key. Microsoft does not build Edge (microsoft-edge) for Linux/ARM platforms, hence the Edge (node and standalone) images are only available for AMD64.

  • Google does not publish a ChromeDriver build for Linux/ARM64 (Chrome for Testing only ships linux64). On ARM64 the Chrome images use the Chromium driver of the same major version instead, taken from the Debian chromium-driver package archived at NDViet/chromium-stable. Those packages follow the stable channel, hence the Chrome dev and beta images are only available for AMD64.

  • We also supply Chrome for Testing (CfT), but it is only available for Linux/AMD64.

  • For older Linux/ARM setups you can also use the open source Chromium browser. The Chromium (node and standalone) images are available in multi-arch.

bash
$ docker run --rm -it -p 4444:4444 -p 5900:5900 -p 7900:7900 --shm-size 2g selenium/standalone-chromium:latest
  • Mozilla Firefox now is available for Linux/ARM64 via APT stable channel from v136+. The Firefox (node and standalone) images are available in multi-arch.

Multi-arch images are tested on CircleCI with resource class Linux/ARM64. See the status below. (Moved to GitHub Actions)

History of the multi-arch images

For experimental docker container images, which run on platforms such as the Apple M-series or Raspberry Pi, the repository at seleniumhq-community/docker-seleniarm provided images which are published on the Seleniarm Docker Hub registry.

See issue #1076 for more information on these images.

Now, the fork seleniumhq-community/docker-seleniarm was merged.

Build the multi-arch images locally

We recommend to enable the experimental feature containerd image store in Docker Engine. containerd understands multiplatform images, where a single image tag can refer to different variants covering a range of OS and hardware architectures. It simplifies the process of building, storing, and distributing images across different platforms.

A single command to enable that feature in Docker Engine:

bash
make set_containerd_image_store

Noted: That command is only compatible with Ubuntu. For users use Docker Desktop on macOS, it can be enabled easily via

Settings > General > Use containerd for pulling and storing images

To build all the images for multiplatform at once, run the following command:

bash
PLATFORMS=linux/amd64,linux/arm64 make all

To build the images for a specific platform, run the following command:

bash
PLATFORMS=linux/arm64 make all

By default, without specifying the PLATFORMS variable, the images are built with current host architecture.

Similarly, if you are using host ARM64 architecture, you can build the images for AMD64 architecture by running the following command:

bash
PLATFORMS=linux/amd64 make all

Nightly Images

Nightly images are built on top of the Nightly build on the upstream project Selenium with the latest changes on main branch in this repository. The image tag is

Issues· 92 open

View all issuesOpen on GitHub
  • #2185

    Dependency Dashboard

    dependenciesUpdated Sep 29, 2026
  • #3241

    Nightly build is failing

    Updated Sep 26, 2026
  • #3247

    [ Bug]: Chart release / rebuild needed: node-chromium ships Chromium with unpatched CVEs

    needs-triagingUpdated Sep 26, 2026
  • #3242

    [ Bug]: Grid becomes unusable after security scan

    needs-triagingUpdated Sep 22, 2026
  • #3153

    [ Bug]: Duplicate video recording processes in dynamic Grid with standalone video container

    needs-triagingUpdated Sep 19, 2026
  • #3235

    [ Bug]: videoRecorder.enabled: false does not disable video recording

    needs-triagingUpdated Sep 7, 2026
  • #3151

    [ Bug]: DockerClient.getImage fails to find image after successful pull in standalone-docker:4.39.0

    needs-triagingUpdated Sep 6, 2026
  • #3166

    [ Bug]: Firefox WebDriver hangs on quit - if firefox runs on partly-isolated host

    needs-triagingUpdated Sep 6, 2026
  • #3167

    [ Bug]: ScaledJob default scalingStrategy "accurate" (since chart 0.56.0) causes runaway node job creation; "default" no longer selectable on KEDA 2.20+

    Updated Sep 6, 2026
  • #3179

    [ Bug]: Selenium Grid 4.41.0 on Kubernetes does not exhibit Dynamic Grid behavior after upgrading Hub and Nodes

    needs-triagingUpdated Sep 6, 2026

> Tags

Gocontainerizationdevopsdistributed-systemsdocker

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理