Grid 4 has the ability to start Docker containers on demand, this means that it starts a Docker container in the background for each new session request, the test gets executed there, and when the test completes, the container gets thrown away.
This execution mode can be used either in the Standalone or Node roles. The "dynamic"
execution mode needs to be told what Docker images to use when the containers get started.
Additionally, the Grid needs to know the URI of the Docker daemon. This configuration can
be placed in a local toml file.
More details can be seen at the https://github.com/SeleniumHQ/docker-selenium/tree/trunk#dynamic-grid.
The same Dynamic Grid concept is applied to a Kubernetes cluster. The Grid provisions exactly one browser Pod per session request and deletes it immediately on close.
Along with them, reference Kubernetes manifests are available at https://github.com/SeleniumHQ/docker-selenium/tree/4.41.0-20260222/kubernetes/DynamicGrid. These are intentionally simplex — designed for local practice and getting started quickly.
Browser stereotypes and Dynamic Grid tuning live in a TOML config file, delivered to the Node Pod via a https://github.com/SeleniumHQ/docker-selenium/blob/4.41.0-20260222/kubernetes/DynamicGrid/BaseConfig/configmap.yaml:
yaml# configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: selenium-kubernetes-config data: kubernetes.toml: | [kubernetes] configs = [ "selenium/standalone-chrome:4.41.0-20260222", '{"browserName": "chrome", "platformName": "linux"}', "selenium/standalone-firefox:4.41.0-20260222", '{"browserName": "firefox", "platformName": "linux"}', "selenium/standalone-edge:4.41.0-20260222", '{"browserName": "MicrosoftEdge", "platformName": "linux"}' ]
The configs array pairs each browser image with a capability stereotype JSON string. The Node uses these to match incoming session requests against the right image, spin up the Pod, and report available slots to the Hub.
The https://github.com/SeleniumHQ/docker-selenium/blob/4.41.0-20260222/kubernetes/DynamicGrid/Hub_Node/node-kubernetes-deployment.yaml then mounts that ConfigMap as a file and points the Grid node at it:
yaml# node-kubernetes-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: selenium-node-kubernetes spec: replicas: 1 template: spec: serviceAccountName: selenium-node # needs Pod create/delete RBAC terminationGracePeriodSeconds: 300 containers: - name: selenium-node-kubernetes image: selenium/node-kubernetes:4.41.0-20260222 ports: - containerPort: 5555 env: - name: SE_EVENT_BUS_HOST value: "selenium-hub" - name: SE_NODE_SESSION_TIMEOUT value: "600" - name: SE_DYNAMIC_OVERRIDE_MAX_SESSIONS value: "true" - name: SE_DYNAMIC_MAX_SESSIONS value: "10" volumeMounts: - name: selenium-config mountPath: /opt/selenium/kubernetes.toml # TOML config path subPath: kubernetes.toml readOnly: true - name: session-assets # shared PVC for video/logs mountPath: /opt/selenium/assets volumes: - name: selenium-config configMap: name: selenium-kubernetes-config # references the ConfigMap above - name: session-assets persistentVolumeClaim: claimName: selenium-assets
Event bus connectivity (host), and node config (session timeout) are passed as environment variables. Browser stereotypes live entirely in the TOML file inside the ConfigMap, keeping them independently updatable without redeploying the Node.
The https://github.com/SeleniumHQ/docker-selenium/blob/4.41.0-20260222/kubernetes/DynamicGrid/BaseConfig/rbac.yaml grants the Node the minimal permissions needed — create, delete, and get on pods and pods/log in the configured namespace. No cluster-wide permissions needed.
https://github.com/SeleniumHQ/selenium/blob/selenium-4.41.0/java/src/org/openqa/selenium/grid/node/kubernetes/InheritedPodSpec.java is what makes multi-Node deployments particularly powerful. When the Dynamic Grid Node runs inside Kubernetes, it inspects its own Pod spec and automatically propagates matching fields to every browser Job it creates — tolerations, affinity rules, node selectors, resource requests and limits, image pull secrets, service account, DNS config, security context, and PVC mounts at the assets path.
This means the browser Pods land on exactly the same node pool, zone, or hardware tier as the Dynamic Node that spawned them — with no extra configuration required in the TOML or ConfigMap.
The practical implication: you can deploy multiple Dynamic Grid Nodes, each pinned to a different cluster segment via their own nodeSelector or affinity, and all registered to the same Hub. The Hub distributes session requests across them, and each Node provisions browser Pods that inherit its own placement constraints.
┌─────────────────────────────────-┐ │ Hub │ └──────┬──────────────┬───────────-┘ │ │ ┌────────────────▼──┐ ┌───-▼────────────────┐ │ NodeKubernetes │ │ NodeKubernetes │ │ nodeSelector: │ │ nodeSelector: │ │ zone=us-west │ │ zone=us-east │ └────────┬──────────┘ └────────-┬───────────┘ │ inherits spec │ inherits spec ┌─────────▼──────────┐ ┌──────────-▼──────────┐ │ browser Pod │ │ browser Pod │ │ (us-west, same │ │ (us-east, same │ │ tolerations...) │ │ tolerations...) │ └────────────────────┘ └─────────────────────-┘
Teams can keep multiple Dynamic Nodes on standby — lightweight processes consuming minimal resources — and let the browser Pods scale horizontally on demand within each segment. This approach fits naturally into cluster autoscaler workflows: idle Nodes hold their spot in the cluster; browser Jobs drive the actual compute scaling.
This is a genuinely exciting milestone. Teams running large Kubernetes fleets can now enjoy true on-demand browser provisioning without a Docker socket sidecar. The browser Pod starts when the session starts, and disappears the moment it ends. Resources are consumed only when tests are actually running.
Selenium Server 4.41.0 Release date 20260222 e126989f151e selenium/node-kubernetes 4 e126989f151e selenium/node-kubernetes 4.41 e126989f151e selenium/node-kubernetes 4.41.0 e126989f151e selenium/node-kubernetes 4.41.0-20260222
With that, you can use any of the different tags to get the most recent release in a simplified way.
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.
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.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务