Alternative to mounting /dev/shm volume in Selenium Grid AWS Fargate setup Alternative to mounting /dev/shm volume in Selenium Grid AWS Fargate setup docker docker

Alternative to mounting /dev/shm volume in Selenium Grid AWS Fargate setup


Currently AWS Fargate doesn't supports privileged mode and mounting of devices from underline docker host.

As of now there is no way to mount /dev/shm from docker host to container in Fargate.

It is advisable to use EC2 Launch type to support this functionality.


Try to disable dev_shm usage.

For Chrome you should use:

ChromeOptions options = new ChromeOptions();        ...        options.addArguments("--no-sandbox");        options.addArguments("--disable-dev-shm-usage");

and for Firefox please try to set the system environment variable:

set MOZ_FORCE_DISABLE_E10S=1

The drawback for FF is, that you will disable FF multiprocessing, however I do not think this is highly important for Selenium grid implementation. Just hope FF will preserve this feature or provide an alternative.

Background for the Chrome solution can be found hereWebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser

Background for the FF solution can be found here: http://forums.mozillazine.org/viewtopic.php?f=38&t=3051846