I'm running a single docker container as part of my stack, the image is selenium/standalone-chrome:97.0.4692.99-chromedriver-97.0.4692.71
I'm seeing issues where it's saying there's no more room for sessions, so I'm trying to increase the number of concurrent sessions by configuring SE_OPTS like:
selenium:
mem_limit: 3221225472
image: selenium/standalone-chrome:97.0.4692.99-chromedriver-97.0.4692.71
environment:
START_XVFB: 'false'
SE_OPTS: --max-sessions=5
However then I'm seeing this in the logs:
1/31/2022 7:20:39 AM Appending Selenium options: --max-sessions=5
1/31/2022 7:20:39 AM Setting up SE_NODE_GRID_URL...
1/31/2022 7:20:39 AM Selenium Grid Standalone configuration:
1/31/2022 7:20:39 AM [network]
1/31/2022 7:20:39 AM relax-checks = true
1/31/2022 7:20:39 AM
1/31/2022 7:20:39 AM [node]
1/31/2022 7:20:39 AM session-timeout = "300"
1/31/2022 7:20:39 AM override-max-sessions = false
1/31/2022 7:20:39 AM detect-drivers = false
1/31/2022 7:20:39 AM max-sessions = 1
1/31/2022 7:20:39 AM
1/31/2022 7:20:39 AM [[node.driver-configuration]]
1/31/2022 7:20:39 AM display-name = "chrome"
1/31/2022 7:20:39 AM stereotype = '{"browserName": "chrome", "browserVersion": "97.0", "platformName": "Linux"}'
1/31/2022 7:20:39 AM max-sessions = 1
1/31/2022 7:20:39 AM Starting Selenium Grid Standalone...
1/31/2022 7:20:39 AM Was passed main parameter '--max-sessions=5' but no main parameter was defined in your arg class
2022-01-31 12:20:39,342 INFO exited: selenium-standalone (exit status 0; expected)
So it seems it's clearly not accepting the value that I'm passing correctly. What tweaks do I need to make here to ensure this setting is applied to selenium?