Skip to content

Instantly share code, notes, and snippets.

@lazytesting
Last active November 8, 2016 14:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazytesting/a35e837367d141a75268b052a8f45d20 to your computer and use it in GitHub Desktop.
Save lazytesting/a35e837367d141a75268b052a8f45d20 to your computer and use it in GitHub Desktop.
param (
[string]$instances = 10
)
docker rm -f selenium-hub
docker run --restart=always -d -p 4444:4444 --name selenium-hub selenium/hub:3.0.0-dubnium
$i=0
while($i -ne $instances)
{
docker rm -f chromedriver-$i
docker run --restart=always -d --link selenium-hub:hub --name=chromedriver-$i selenium/node-chrome:3.0.0-dubnium
$i++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment