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.
 

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

Control Panel/Shared Folders/Edit... Change "Location" to point to desired volume. Files/folders/ link...
Replies
11
Views
4,048
Interesting. I'm definitely learning something new everyday while exploring docker & my synology too...
Replies
4
Views
2,095
How did you create the Portainer container in first place? As in exact docker run commands or in case...
Replies
7
Views
1,235
Thanks for the explanation - that actually made sense!
Replies
6
Views
3,408

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Back
Top