How to set --shm-size 128m on railway Postgres database docker

Anonymous
TRIAL

a year ago

There's a issue on github telling more about it
https://github.com/docker-library/postgres/issues/416

Solved

0 Replies

Anonymous
TRIAL

a year ago

eb397f3a-ebde-411c-ad58-d744a699bed0


Anonymous
TRIAL

a year ago

Seems that a custom start command doesn't work bc it needs to go on image


michaelvips
TRIAL

a year ago

you mean set a size limit ?


Anonymous
TRIAL

a year ago

It's a size limit for shared memory in postgres


michaelvips
TRIAL

a year ago

I think you don´t need set this on railway.


Anonymous
TRIAL

a year ago

An example of how to run: docker run -it --rm --shm-size 128m alpine:3.7 df -hT /dev/shm


Anonymous
TRIAL

a year ago

@michaelvips Actually I need, bc I'm having the error in the railway database.


Anonymous
TRIAL

a year ago

Because it's not the machine memory but shared memory on docker.


michaelvips
TRIAL

a year ago

you already using 100% of your account plan resources?


Anonymous
TRIAL

a year ago

No. Like I said it's not a resource problem, but a docker managment resource problem. Look

1214567105165525000


Anonymous
TRIAL

a year ago

I have the hobby plan with 8gb ram, and i'm not using 4gb ram at all


michaelvips
TRIAL

a year ago

try to remove the comand that is seting the size of memory, I think railway do not support this.


Anonymous
TRIAL

a year ago

Exactly, I want to set it on the docker image that railways provides but seems like I can't.


michaelvips
TRIAL

a year ago

you can´t use railway like a standard vps, some functions you can´t access


Anonymous
TRIAL

a year ago

I know, but as it provides a good docker support, I thought that they can adjust this in some way?


michaelvips
TRIAL

a year ago

you need create a empy service an then use the image docker


michaelvips
TRIAL

a year ago

not a database with image


michaelvips
TRIAL

a year ago

to data base the only image docker you need use is from postgres


michaelvips
TRIAL

a year ago

1214569356487561200


a year ago

@Gabriel Jatobá are you brazilian? if so, do you mind upvoting this community suggestion ? Bora trazer o Railway pro Brasil 😉


a year ago

for the record, you can not set flags intended for the docker run command.


mareksuscak
PRO

7 months ago

@Brody is there any way to configure shm-size at all? It's preventing us from using pgvector completely.


7 months ago

yes you can, wasn't the case when I commented here, but you can now -


mareksuscak
PRO

7 months ago

Thanks!


7 months ago

!s


Status changed to Solved brody 7 months ago


How to set --shm-size 128m on railway Postgres database docker - Railway Help Station