This is a basic setup to show how dockercan be used to run Protractor tests. We would setup a Selenium Grid and run the tests.
Docker needs to be installed on your machine, can be downloaded from: https://www.docker.com/
Once docker is installed and running, download the docker images using the following commands in power shell
docker pull selenium/hub:latest docker pull selenium/node-chrome:latest
docker run -d -p 4444:4444 --name selenium-hub selenium/hub:latest
docker run -d --link selenium-hub:hub selenium/node-chrome:latest
C:/ node ./node_modules/.bin/protractor conf.js
Docker compose can be used as one stop point for running all the images.
docker-compose up -d
References: To learn more, see the documentation for Docker and Protractor.