$ sudo docker pull lzhang/selenium
Run the container:
$ SELENIUM_CONTAINER=$(sudo docker run -p 4444:4444 -d lzhang/selenium)
Selenium server will be available on the host machine at port 4444. Web tests will run via headless Firefox.
Shutting down the container:
$ sudo docker kill $SELENIUM_CONTAINER