Increasing Shared Memory Size

Currently reading
Increasing Shared Memory Size

20
4
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.
 

jeyare

Subscriber
1,876
622
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.

Similar threads

Similar threads

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending threads

Top