$ sudo docker pull phoey/docker-selenium-chrome
Run the container:
$ SELENIUM_CONTAINER=$(sudo docker run --privileged -p 4444:4444 -d phoey/docker-selenium-chrome)
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 https://github.com/dotcloud/docker/issues/1079).
Shutting down the container:
$ sudo docker kill $SELENIUM_CONTAINER
docker pull phoey/docker-selenium-chrome:latest