selenium/standalone-chrome Docker 镜像 - 轩辕镜像 | Docker 镜像高效稳定拉取服务
selenium/standalone-chromeSelenium Grid Standalone with Chrome
This image provides a Selenium Grid Standalone with Chrome, which enables you to run WebDriver tests remotely.
How to run this image
- Start a Standalone Chrome
bashdocker run -d -p 4444:4444 -p 7900:7900 --shm-size="2g" selenium/standalone-chrome:latest
-
Point your WebDriver tests to http://localhost:4444
-
That's it!
-
(Optional) To see what is happening inside the container, head to http://localhost:7900/?autoconnect=1&resize=scale&password=secret.
-
When executing
docker runfor an image that contains a browser please use the flag--shm-size=2gto use the host's shared memory. -
The example above uses
latestas a tag, but we recommend to full tag to pin a specific browser and Grid version. Please see Tagging Conventions 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 112, ChromeDriver 112.0 and Selenium Grid Server 4.9.0, released on 20230426
Chrome 112.0 ChromeDriver 112.0 Selenium Server 4.9.0 Release date 20230426 e***f151e selenium/standalone-chrome 4 e***f151e selenium/standalone-chrome 4.9 e***f151e selenium/standalone-chrome 4.9.0 e***f151e selenium/standalone-chrome 4.9.0-20230426 e***f151e selenium/standalone-chrome 112.0 e***f151e selenium/standalone-chrome 112.0-20230426 e***f151e selenium/standalone-chrome 112.0-chromedriver-112.0 e***f151e selenium/standalone-chrome 112.0-chromedriver-112.0-20230426 e***f151e selenium/standalone-chrome 112.0-chromedriver-112.0-grid-4.9.0-20230426
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 README 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 Apache License 2.0.
镜像拉取常见问题
使用与功能问题
错误码与失败问题
manifest unknown 错误:镜像不存在或标签错误
manifest unknown 错误
TLS/SSL 证书验证失败:Docker pull 时 HTTPS 证书错误
TLS 证书验证失败
DNS 解析超时:无法解析镜像仓库地址或连接超时
DNS 解析超时
410 Gone 错误:Docker 版本过低导致协议不兼容
410 错误:版本过低
402 Payment Required 错误:流量耗尽错误提示
402 错误:流量耗尽
401 UNAUTHORIZED 错误:身份认证失败或登录信息错误
身份认证失败错误
429 Too Many Requests 错误:请求频率超出专业版限制
429 限流错误
Docker login 凭证保存错误:Cannot autolaunch D-Bus(不影响登录)
凭证保存错误
账号 / 计费 / 权限
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务