Increasing Shared Memory Size

Currently reading
Increasing Shared Memory Size

20
5
NAS
DS916+
Router
  1. RT2600ac
I need to have firefox in docker but due to small amount of shared memory it is constantly crashing. Can you help me with this instruction?

To prevent crashes from happening when running Firefox inside a Docker container, the size of the shared memory located at /dev/shm must be increased. The issue is documented here.

By default, the size is 64MB, which is not enough. It is recommended to use a size of 2GB. This value is arbitrary, but known to work well. Setting the size of /dev/shm can be done via two method:

  • By adding the --shm-size 2g parameter to the docker run command. See the Usage section for more details.
  • By using shared memory of the host, by mapping /dev/shm via the parameter -v /dev/shm:/dev/shm of the docker run command.
 

Rusty

Moderator
NAS Support
2,891
878
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
what image are you running and how are you running it @dudi
 

jeyare

Subscriber
1,766
580
916+ with 8GB RAM
It was just a checkpoint - missed in your initial description. Still is missing your available RAM value.
Seems to be Firefox container environment variable need first check. Also mentioned in the container description.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Similar threads

Similar threads

Trending threads

Top