/docker-chrome-selenium

Dockerfile to build a headless selenium installation with ChromeDriver

Primary LanguageShellOtherNOASSERTION

Docker image for Selenium Server with Chrome (adapted from lzhang/selenium)

Installation

$ sudo docker pull eperoumalnaik/selenium

Usage

Run the container:

$ SELENIUM_CONTAINER=$(sudo docker run --privileged -p 4444:4444 -d eperoumalnaik/selenium)

Selenium server will be available on the host machine at port 4444. Web tests will run via headless chrome.

The privileged option is needed so that chrome can run (see moby/moby#1079).

Shutting down the container:

$ sudo docker kill $SELENIUM_CONTAINER