$ sudo docker pull eperoumalnaik/docker-chrome-selenium
Run the container:
$ SELENIUM_CONTAINER=$(sudo docker run --privileged -p 4444:4444 -d eperoumalnaik/docker-chrome-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