@@ -266,7 +266,6 @@ $ docker run --rm -it -p 4444:4444 -p 7900:7900 --shm-size 2g selenium/standalon
266266# To execute this docker compose yml file use `docker compose -f docker-compose-v3-beta-channel.yml up`
267267# Add the `-d` flag at the end for detached execution
268268# To stop the execution, hit Ctrl+C, and then `docker compose -f docker-compose-v3-beta-channel.yml down`
269- version: " 3"
270269services:
271270 chrome:
272271 image: selenium/node-chrome:beta
@@ -275,8 +274,6 @@ services:
275274 - selenium-hub
276275 environment:
277276 - SE_EVENT_BUS_HOST=selenium-hub
278- - SE_EVENT_BUS_PUBLISH_PORT=4442
279- - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
280277
281278 edge:
282279 image: selenium/node-edge:beta
@@ -285,8 +282,6 @@ services:
285282 - selenium-hub
286283 environment:
287284 - SE_EVENT_BUS_HOST=selenium-hub
288- - SE_EVENT_BUS_PUBLISH_PORT=4442
289- - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
290285
291286 firefox:
292287 image: selenium/node-firefox:beta
@@ -295,8 +290,6 @@ services:
295290 - selenium-hub
296291 environment:
297292 - SE_EVENT_BUS_HOST=selenium-hub
298- - SE_EVENT_BUS_PUBLISH_PORT=4442
299- - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
300293
301294 selenium-hub:
302295 image: selenium/hub:latest
@@ -312,7 +305,6 @@ services:
312305# To execute this docker compose yml file use `docker compose -f docker-compose-v3-dev-channel.yml up`
313306# Add the `-d` flag at the end for detached execution
314307# To stop the execution, hit Ctrl+C, and then `docker compose -f docker-compose-v3-dev-channel.yml down`
315- version: " 3"
316308services:
317309 chrome:
318310 image: selenium/node-chrome:dev
@@ -321,8 +313,6 @@ services:
321313 - selenium-hub
322314 environment:
323315 - SE_EVENT_BUS_HOST=selenium-hub
324- - SE_EVENT_BUS_PUBLISH_PORT=4442
325- - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
326316
327317 edge:
328318 image: selenium/node-edge:dev
@@ -331,8 +321,6 @@ services:
331321 - selenium-hub
332322 environment:
333323 - SE_EVENT_BUS_HOST=selenium-hub
334- - SE_EVENT_BUS_PUBLISH_PORT=4442
335- - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
336324
337325 firefox:
338326 image: selenium/node-firefox:dev
@@ -341,8 +329,6 @@ services:
341329 - selenium-hub
342330 environment:
343331 - SE_EVENT_BUS_HOST=selenium-hub
344- - SE_EVENT_BUS_PUBLISH_PORT=4442
345- - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
346332
347333 selenium-hub:
348334 image: selenium/hub:latest
@@ -411,18 +397,12 @@ $ docker network create grid
411397$ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.29.0-20250222
412398$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
413399 --shm-size=" 2g" \
414- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
415- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
416400 selenium/node-chrome:4.29.0-20250222
417401$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
418402 --shm-size=" 2g" \
419- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
420- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
421403 selenium/node-edge:4.29.0-20250222
422404$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
423405 --shm-size=" 2g" \
424- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
425- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
426406 selenium/node-firefox:4.29.0-20250222
427407` ` `
428408
@@ -433,18 +413,12 @@ $ docker network create grid
433413$ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.29.0-20250222
434414$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub `
435415 --shm-size=" 2g" `
436- -e SE_EVENT_BUS_PUBLISH_PORT=4442 `
437- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `
438416 selenium/node-chrome:4.29.0-20250222
439417$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub `
440418 --shm-size=" 2g" `
441- -e SE_EVENT_BUS_PUBLISH_PORT=4442 `
442- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `
443419 selenium/node-edge:4.29.0-20250222
444420$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub `
445421 --shm-size=" 2g" `
446- -e SE_EVENT_BUS_PUBLISH_PORT=4442 `
447- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `
448422 selenium/node-firefox:4.29.0-20250222
449423` ` `
450424
@@ -473,8 +447,6 @@ $ docker run -d -p 4442-4444:4442-4444 --name selenium-hub selenium/hub:4.29.0-2
473447$ docker run -d -p 5555:5555 \
474448 --shm-size="2g" \
475449 -e SE_EVENT_BUS_HOST=<ip-from-machine-1> \
476- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
477- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
478450 -e SE_NODE_HOST=<ip-from-machine-2> \
479451 selenium/node-chrome:4.29.0-20250222
480452```
@@ -484,9 +456,7 @@ $ docker run -d -p 5555:5555 \
484456```powershell
485457$ docker run -d -p 5555:5555 `
486458 --shm-size="2g" `
487- -e SE_EVENT_BUS_HOST=<ip-from-machine-1> `
488- -e SE_EVENT_BUS_PUBLISH_PORT=4442 `
489- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `
459+ -e SE_EVENT_BUS_HOST=<ip-from-machine-1>
490460 -e SE_NODE_HOST=<ip-from-machine-2> `
491461 selenium/node-chrome:4.29.0-20250222
492462```
@@ -500,8 +470,6 @@ $ docker run -d -p 5555:5555 `
500470$ docker run -d -p 5555:5555 \
501471 --shm-size="2g" \
502472 -e SE_EVENT_BUS_HOST=<ip-from-machine-1> \
503- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
504- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
505473 -e SE_NODE_HOST=<ip-from-machine-3> \
506474 selenium/node-edge:4.29.0-20250222
507475```
@@ -512,8 +480,6 @@ $ docker run -d -p 5555:5555 \
512480$ docker run -d -p 5555:5555 `
513481 --shm-size="2g" `
514482 -e SE_EVENT_BUS_HOST=<ip-from-machine-1> `
515- -e SE_EVENT_BUS_PUBLISH_PORT=4442 `
516- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `
517483 -e SE_NODE_HOST=<ip-from-machine-3> `
518484 selenium/node-edge:4.29.0-20250222
519485```
@@ -526,8 +492,6 @@ $ docker run -d -p 5555:5555 `
526492$ docker run -d -p 5555:5555 \
527493 --shm-size="2g" \
528494 -e SE_EVENT_BUS_HOST=<ip-from-machine-1> \
529- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
530- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
531495 -e SE_NODE_HOST=<ip-from-machine-4> \
532496 selenium/node-firefox:4.29.0-20250222
533497```
@@ -538,8 +502,6 @@ $ docker run -d -p 5555:5555 \
538502$ docker run -d -p 5555:5555 `
539503 --shm-size="2g" `
540504 -e SE_EVENT_BUS_HOST=<ip-from-machine-1> `
541- -e SE_EVENT_BUS_PUBLISH_PORT=4442 `
542- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `
543505 -e SE_NODE_HOST=<ip-from-machine-4> `
544506 selenium/node-firefox:4.29.0-20250222
545507```
@@ -552,8 +514,6 @@ $ docker run -d -p 5555:5555 `
552514$ docker run -d -p 5556:5556 \
553515 --shm-size="2g" \
554516 -e SE_EVENT_BUS_HOST=<ip-from-machine-1> \
555- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
556- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
557517 -e SE_NODE_HOST=<ip-from-machine-4> \
558518 -e SE_NODE_PORT=5556 \
559519 selenium/node-chrome:4.29.0-20250222
@@ -565,8 +525,6 @@ $ docker run -d -p 5556:5556 \
565525$ docker run -d -p 5556:5556 `
566526 --shm-size="2g" `
567527 -e SE_EVENT_BUS_HOST=<ip-from-machine-1> `
568- -e SE_EVENT_BUS_PUBLISH_PORT=4442 `
569- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `
570528 -e SE_NODE_HOST=<ip-from-machine-4> `
571529 -e SE_NODE_PORT=5556 `
572530 selenium/node-chrome:4.29.0-20250222
@@ -691,7 +649,6 @@ Notes: To reach the GraphQL endpoint, the recorder container needs to know the H
691649Besides the video recording mentioned above, you can enable the upload functionality by setting the following environment variables:
692650
693651` ` ` yaml
694- version: " 3"
695652services:
696653 chrome_video:
697654 image: selenium/video:ffmpeg-7.1-20250222
@@ -843,8 +800,6 @@ virtual machines.
843800$ docker network create grid
844801$ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.29.0-20250222
845802$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
846- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
847- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
848803 -v ${PWD} /config.toml:/opt/selenium/config.toml \
849804 -v ${PWD} /assets:/opt/selenium/assets \
850805 -v /var/run/docker.sock:/var/run/docker.sock \
@@ -857,8 +812,6 @@ $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
857812$ docker network create grid
858813$ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.29.0-20250222
859814$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub `
860- -e SE_EVENT_BUS_PUBLISH_PORT=4442 `
861- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `
862815 -v ${PWD} /config.toml:/opt/selenium/config.toml `
863816 -v ${PWD} /assets:/opt/selenium/assets `
864817 -v /var/run/docker.sock:/var/run/docker.sock `
@@ -911,8 +864,6 @@ $ docker run -d -p 4442-4444:4442-4444 --name selenium-hub selenium/hub:4.29.0-2
911864` ` ` bash
912865$ docker run -d -p 5555:5555 \
913866 -e SE_EVENT_BUS_HOST=< ip-from-machine-1> \
914- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
915- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
916867 -v ${PWD} /config.toml:/opt/selenium/config.toml \
917868 -v ${PWD} /assets:/opt/selenium/assets \
918869 -v /var/run/docker.sock:/var/run/docker.sock \
@@ -924,8 +875,6 @@ $ docker run -d -p 5555:5555 \
924875` ` ` bash
925876$ docker run -d -p 5555:5555 `
926877 -e SE_EVENT_BUS_HOST=< ip-from-machine-1> `
927- -e SE_EVENT_BUS_PUBLISH_PORT=4442 `
928- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 `
929878 -v ${PWD} /config.toml:/opt/selenium/config.toml `
930879 -v ${PWD} /assets:/opt/selenium/assets `
931880 -v /var/run/docker.sock:/var/run/docker.sock `
@@ -1117,8 +1066,6 @@ Here is an example with the default values of these environment variables:
11171066```bash
11181067$ docker run -d \
11191068 -e SE_EVENT_BUS_HOST=<event_bus_ip|event_bus_name> \
1120- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1121- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
11221069 -e SE_NODE_STEREOTYPE="{\"browserName\":\"${SE_NODE_BROWSER_NAME}\", \"browserVersion\":\"${SE_NODE_BROWSER_VERSION}\", \"platformName\":\"${SE_NODE_PLATFORM_NAME}\"}" \
11231070 --shm-size="2g" selenium/node-chrome:4.29.0-20250222
11241071```
@@ -1127,8 +1074,6 @@ In another case, if you want to retain the default Node stereotype and append ad
11271074```bash
11281075$ docker run -d \
11291076 -e SE_EVENT_BUS_HOST=<event_bus_ip|event_bus_name> \
1130- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1131- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
11321077 -e SE_NODE_STEREOTYPE_EXTRA="{\"myApp:version\":\"beta\", \"myApp:publish:\":\"public\"}" \
11331078 --shm-size="2g" selenium/node-chrome:4.29.0-20250222
11341079```
@@ -1159,7 +1104,7 @@ In addition, default Node stereotype includes capability `se:containerName` whic
11591104In an advanced case, where you control to spawn up a Node container, let it register to Hub, and then trigger a test to be assigned exactly to run on that Node. By default, the value of command `$(hostname)` is added to capability name `container:hostname` in Node stereotype. Combine with above feature setting custom capabilities for matching specific Nodes. You can use the `hostname` of the Node container just spawned up and set it as a custom capability. For example, in Python binding:
11601105
11611106```bash
1162- $ docker run -d --name my-node-1 -e SE_EVENT_BUS_HOST=localhost -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
1107+ $ docker run -d --name my-node-1 -e SE_EVENT_BUS_HOST=localhost \
11631108 --shm-size="2g" selenium/node-chrome:4.29.0-20250222
11641109$ docker exec -i my-node-1 hostname
11651110a6971f95bbab
@@ -1271,8 +1216,8 @@ To avoid starting the server you can set the `SE_START_XVFB` environment variabl
12711216(or any other value than `true`), for example:
12721217
12731218``` bash
1274- $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1275- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -e SE_START_XVFB=false --shm-size="2g" selenium/node-chrome:4.29.0-20250222
1219+ $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
1220+ -e SE_START_XVFB=false --shm-size="2g" selenium/node-chrome:4.29.0-20250222
12761221```
12771222
12781223For more information, see this GitHub [issue](https://github.com/SeleniumHQ/docker-selenium/issues/567).
@@ -1558,18 +1503,12 @@ $ docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub \
15581503 selenium/hub:4.29.0-20250222
15591504$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
15601505 --shm-size="2g" \
1561- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1562- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
15631506 selenium/node-chrome:4.29.0-20250222
15641507$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
15651508 --shm-size="2g" \
1566- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1567- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
15681509 selenium/node-edge:4.29.0-20250222
15691510$ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
15701511 --shm-size="2g" \
1571- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1572- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
15731512 selenium/node-firefox:4.29.0-20250222
15741513
15751514```
@@ -1791,24 +1730,18 @@ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
17911730 -e SE_ENABLE_TRACING=true \
17921731 -e SE_OTEL_TRACES_EXPORTER=otlp \
17931732 -e SE_OTEL_EXPORTER_ENDPOINT=http://jaeger:4317 \
1794- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1795- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
17961733 selenium/node-chrome:4.29.0-20250222
17971734docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
17981735 --shm-size=" 2g" \
17991736 -e SE_ENABLE_TRACING=true \
18001737 -e SE_OTEL_TRACES_EXPORTER=otlp \
18011738 -e SE_OTEL_EXPORTER_ENDPOINT=http://jaeger:4317 \
1802- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1803- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
18041739 selenium/node-edge:4.29.0-20250222
18051740docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
18061741 --shm-size=" 2g" \
18071742 -e SE_ENABLE_TRACING=true \
18081743 -e SE_OTEL_TRACES_EXPORTER=otlp \
18091744 -e SE_OTEL_EXPORTER_ENDPOINT=http://jaeger:4317 \
1810- -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
1811- -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
18121745 selenium/node-firefox:4.29.0-20250222
18131746` ` `
18141747
0 commit comments