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
En esta página del sitio puede ver el video en línea 2. Selenium Grid 4 using Docker- Hub & Node Setup with Docker Compose de Duración hora minuto segunda en buena calidad , que subió el usuario Test Automation with Atul Sharma 30 julio 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,734 veces y le gustó 30 a los espectadores. Disfruta viendo!