I am using zalenium/docker to create a dockerized solution for selenium grid. On first launch time the tests run normally on all created containers(containers are created before test run).However, I am failing to get more than 3 containers to run my tests when I run the tests for the second time. I am quite new to this topic, maybe I am doing something wrong with the tests themselves. I run them in parallel (C#). The tests themselves do complete all the time, but the amount of time it takes to complete them could be improved with more containers. Here is my command and params:
docker run --rm -ti --name zalenium -p 4444:4444 -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/videos:/home/seluser/videos --privileged dosel/zalenium start --desiredContainers 8 --maxDockerSeleniumContainers 8 --maxTestSessions 4
I have docker installed on windows 10 machine for now.
UPDATE: In the /grid/console view there is this line:
1 requests waiting for a slot to be free. Capabilities {browserName: firefox, platform: LINUX, zal:name: myTestName2}