Repository navigation
Addition of "--shm-size" to which size of /dev/shm is changed - #16168
Conversation
|
Looks like you need to run |
8e7831d to
44552f1
Compare
|
Can we have this for |
|
The size of shm is specified into "run and create". |
|
That would be awesome, we are currently using a custom build just to adjust shared memory during build time so we can run a program that needs more than the default amount of shared memory. Would be lovely to remove our hard-coded customizations. |
eb72c60 to
24acf55
Compare
24acf55 to
3d2556a
Compare
3bf2e9e to
57ecd52
Compare
767453c to
22ec2f7
Compare
ab3a634 to
740e665
Compare
|
lets do run and create for now, design lgtm moving to code review |
|
Thanks, |
|
Can it be used automatically in Docker Compose, or is another change required for this option to be available in compose? |
|
@vtintillier that probably requires changes in docker compose, so I suggest to open an issue in that repository and refer to this pull request |
There was a problem hiding this comment.
the behavior here isn't consistent between cli and api though..on the cli (build,run,create) we error out if <= 0, API will just default to 64MB
I think either both error out or they set a default
There was a problem hiding this comment.
I take this back sorry for the noise
Backport of Docker's upstream moby#16168 Signed-off-by: Antonio Murdaca <[email protected]>
Backport of Docker's upstream moby#16168 Signed-off-by: Antonio Murdaca <[email protected]>
|
I have to run a bash script in /dev/shm, but the server said 'Permission denied'. 我修改了源代码,把NOEXEC去掉了,可以了。 |
|
@lifubang - currently not possible - https://github.com/docker/docker/blob/master/daemon/container_operations_unix.go#L1048 - raise a separate issue if you can't find one already. Issues aren't a support request forum. |
|
Install details I have tried lot's of way to set this value and I am completely stuck finding no way to configure it for using with gitlab. I have started this issue, I post it here because it's a bit related to what I am trying to achieve : https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1381 |
|
@kopax can you open a new issue for that? it's ok to add a link to this PR for reference |
|
Sure, here is the topic : #24040 |
Addition of "--shm-size" to which size of /dev/shm is changed.
It relates to #2606 , #3505 and #4981.
fix #2606
fix #3505
fix #4981
Signed-off-by: NIWA Hideyuki [email protected]