Tuesday, 29 October 2019

Docker Selenium Image Setup


Go to Docker Hub to download Selenium Hub and Node containers. Steps to do so:

On docker Hub, search with 'Selenium' and hit enter, you will be redirected on search listing page. We will download below containers to setup Selenium Grid.

  • Selenium Hub
  • Chrome/Firefox Node Debug

Download Selenium Hub and Node

To Setup Selenium Grid, download hub and node images. Open terminal/power shell and use the below commands to pull below images:

Selenium Hub

Image for running a Grid Hub
docker pull selenium/hub


Chrome Node Debug

Grid Node with Chrome installed and runs a VNC server, needs to be connected to a Grid Hub
docker pull selenium/node-chrome-debug


Firefox Node Debug

Grid Node with Firefox installed and runs a VNC server, needs to be connected to a Grid Hub
docker pull selenium/node-firefox-debug


Verify downloaded images using below command
docker images




Install Docker on Windows

Prerequisites

  • Windows 10 64-bit: Pro, Enterprise, or Education (Build 15063 or later).
  • BIOS - Virtualization Enabled
  • Hyper-V and Containers Windows features must be enabled

Installation

  • Download Docker Desktop
  • Double-click Docker Desktop Installer.exe to run the installer.
  • Follow the Steps on installer wizard
  • Click Finish to launch Docker.

Whale icon in the status bar should be steady and up and running to access docker from Terminal.



Open Terminal/Power Shell to use Docker.