standalone-chrome

Selenium Standalone Chrome Docker Image

自动构建

Selenium Grid的独立模式(Standalone mode)是一种集成了中心节点(hub)与执行节点(node)功能的简化测试部署方式,配合Chrome浏览器使用时,可在本地或小型测试环境中通过单一进程便捷启动,支持并行执行基于Selenium的自动化测试脚本,无需额外配置独立的中心节点与执行节点,有效简化测试环境搭建流程,提升测试效率,适用于快速验证测试用例或小规模自动化测试场景。

638 次收藏下载次数: 0状态:自动构建维护者:selenium仓库类型:镜像最近更新:
下载命令
点击查看

Selenium Grid Standalone with Chrome

This image provides a https://www.selenium.dev/documentation/grid/getting_started/#standalone with Chrome, which enables you to run https://www.selenium.dev/documentation/webdriver/drivers/remote_webdriver/.

How to run this image

  1. Start a Standalone Chrome
bash
docker run -d -p 4444:4444 -p 7900:7900 --shm-size="2g" selenium/standalone-chrome:latest
  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.

  • 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.

  • The example above uses latest as a tag, but we recommend to full tag to pin a specific browser and Grid version. Please see https://github.com/SeleniumHQ/docker-selenium/wiki/Tagging-Convention for details.

How to choose the correct tag for you

The tag structure is as follows:

selenium/standalone-chrome-<Major>.<Minor>.<Patch>-<YYYYMMDD>

Also with browser version and browser driver version

selenium/standalone-chrome-<browserVersion>-<browserDriver>-<browserDriverVersion>-<Major>.<Minor>.<Patch>-<YYYYMMDD>

Plus all the permutations from the above one

Example of a release with Chrome 152, ChromeDriver 152.0 and Selenium Grid Server 4.48.0, released on 20260909

    Chrome 152.0
    ChromeDriver 152.0
    Selenium Server 4.48.0
    Release date 20260909


e126989f151e        selenium/standalone-chrome   4
e126989f151e        selenium/standalone-chrome   4.48
e126989f151e        selenium/standalone-chrome   4.48.0
e126989f151e        selenium/standalone-chrome   4.48.0-20260909
e126989f151e        selenium/standalone-chrome   152.0
e126989f151e        selenium/standalone-chrome   152.0-20260909
e126989f151e        selenium/standalone-chrome   152.0-chromedriver-152.0
e126989f151e        selenium/standalone-chrome   152.0-chromedriver-152.0-20260909
e126989f151e        selenium/standalone-chrome   152.0-chromedriver-152.0-grid-4.48.0-20260909

With that, you can use any of the different tags to get the most recent release in a simplified way.

Full documentation

The Docker-Selenium project in GitHub has an extensive https://github.com/SeleniumHQ/docker-selenium that will help you find the correct way to get this images up and running for your use case.

License

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 https://raw.githubusercontent.com/SeleniumHQ/selenium/trunk/LICENSE.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 standalone-chrome 镜像标签

docker pull docker.xuanyuan.run/selenium/standalone-chrome:<标签>

DockerHub 原生拉取命令

docker pull selenium/standalone-chrome:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告