Setup selenum hub/grid on Docker

Download Selenium Hub image

docker pull selenium/hub:latest

Download Selenium Chrome image

docker pull selenium/node-chrome:latest

Create Selenium Grid Docker network

docker network create grid

Create docker container

docker run -d -p 4444:4444 --net grid --shm-size="2g" --name selenium-hub selenium/hub:latest

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:latest

 

Share on Google Plus

About Md. Shahzad Alam

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment