2. Selenium Grid 4 using Docker- Hub & Node Setup with Docker Compose

Published: 30 July 2023
on channel: Test Automation with Atul Sharma
2,734
30

Github repo- https://github.com/atulsharmacsk/Sele...

Docker networking
The Hub and Nodes will be created in the same network and they will recognize each other by their container name. A Docker network needs to be created as a first step.

Docker compose-With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.

Commands-
docker network create grid

docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub selenium/hub:4.10.0-20230607

docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 selenium/node-chrome:4.10.0-20230607

docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 selenium/node-edge:4.10.0-20230607

docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -e SE_NODE_MAX_SESSIONS=5 selenium/node-firefox:4.10.0-20230607

docker-compose -f docker-compose.yaml up
docker-compose -f docker-compose.yaml down


On this page of the site you can watch the video online 2. Selenium Grid 4 using Docker- Hub & Node Setup with Docker Compose with a duration of hours minute second in good quality, which was uploaded by the user Test Automation with Atul Sharma 30 July 2023, share the link with friends and acquaintances, this video has already been watched 2,734 times on youtube and it was liked by 30 viewers. Enjoy your viewing!