This is a simple docker-compose file that deploys a sample grid with one hub and one chrome and firefox node.
It is very important to set the COMPOSE_TLS_VERSION correctly (e.g in $HOME/.bashrc ot $HOME/.bash_profile), otherwise you will get an error.
COMPOSE_TLS_VERSION
$HOME/.bashrc
$HOME/.bash_profile
export COMPOSE_TLS_VERSION=TLSv1_2
export DOCKER_HOST=<VCH_IP:port> e.g export DOCKER_HOST=10.158.204.227:2375
Download the docker-compose.yml file and make sure the it is in the same directory from where you are running the docker-compose up -d command
#!/bin/bash docker-compose up –d
http://<vch_ip>:4444/grid/console
docker-compose up --scale chrome=5 -d
docker-compose down --scale chrome=1 -d
docker-compose stop docker-compose rm
Check also the Selenium Blog Article on the VMware CNA Blog for a more detailed description.