question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] Is there any way to add shm_size?

See original GitHub issue

For use apps like firefox, it requires atleast 1GB shm size. Is there any way to add shm_size property to the container.

    ports:
      - 3000:3000
    shm_size: "1gb"
    restart: unless-stopped

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
elvinkim03commented, Oct 6, 2022

To anyone who has the same problem, you could use caprover service config override to update shm_size like this

TaskTemplate:
  ContainerSpec:
    Mounts:
      - Type: volume
        Target: /var/lib/postgresql/data
        Source: captain--postgres-db-data
      - Type: tmpfs
        Target: /dev/shm
        TmpfsOptions:
          SizeBytes: ${sizeInByte}
0reactions
sulphurcommented, Sep 21, 2022

I’ve tried that as well but container doesn’t start

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to increase the size of the /dev/shm in docker container
You can modify shm size by passing the optional parameter --shm-size to docker run command ...
Read more >
Docker shm-size | How To Resize It?
Firstly, launch the Ubuntu container. docker run --rm -it --name ubuntu ubuntu · Now confirm the shm-size using Docker inspect. docker inspect ...
Read more >
Amazon ECS - add --shm-size to Docker run
I need to add the shm-size option to the docker run command for the containers run in my cluster on ECS. I cannot...
Read more >
How to pass extra switch to docker run command
Is there a way to pass an extra option to the docker run command that cwltool runs? For instance I want to increase...
Read more >
Question about shm size in PostgrSQL docker - Support
Restarting the container had no effect on the problem, after a while the error appeared again. I tried adding the line shm_size: '512mb'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found