Mount /dev/shm:/dev/shm in Docker for macOS

844 views
Skip to first unread message

Tom Work

unread,
Sep 20, 2017, 2:36:22 AM9/20/17
to seleniu...@googlegroups.com
To avoid crashes running Selenium Docker images with Chrome/Firefox, it is recommended to set the volume for the shared memory folder, like `docker run ... -v /dev/shm:/dev/shm`.

In macOS there is no folder `/dev/shm` (just on Linux).

Anyone knows if it's also possible to do that mapping in macOS?

Regards,

Tom

David

unread,
Sep 20, 2017, 3:45:57 PM9/20/17
to Selenium Users
Maybe you'll need extra steps for Mac:


maybe be similar for Windows too, one would have to do some googling around.

Diego Fernando Molina

unread,
Sep 20, 2017, 3:46:51 PM9/20/17
to Selenium Users
Hi Tom,

The command works in the same way, just execute the command shown in the official repo https://github.com/SeleniumHQ/docker-selenium#running-the-images

Cheers,

Diego

Tom Work

unread,
Sep 21, 2017, 12:00:56 AM9/21/17
to seleniu...@googlegroups.com
Thank you very much for your answers.

I did the "workaround" suggested by David, but I don't like the idea to create that particular folder.

Diego, are you sure the command works the same way, even when macOS doesn't have `/dev/shm`?

Tom


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c53fb7a8-c7d6-4723-9891-6ec6b5c94e97%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages