-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Addition of "--shm-size" to which size of /dev/shm is changed #16168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
Backport of Docker's upstream moby#16168 Signed-off-by: Antonio Murdaca <runcom@redhat.com> Signed-off-by: NIWA Hideyuki <niwa.niwa@nifty.ne.jp>
Backport of Docker's upstream moby#16168 Signed-off-by: Antonio Murdaca <runcom@redhat.com> Signed-off-by: NIWA Hideyuki <niwa.niwa@nifty.ne.jp>
Backport of Docker's upstream moby#16168 Signed-off-by: Antonio Murdaca <runcom@redhat.com> Signed-off-by: NIWA Hideyuki <niwa.niwa@nifty.ne.jp>
--shm-size was added to Docker in 1.10 via moby/moby#16168. See docker/compose#2823 for more details. Signed-off-by: Spencer Rinehart <anubis@overthemonkey.com>
--shm-size was added to Docker in 1.10 via moby/moby#16168. See docker/compose#2823 for more details. Signed-off-by: Spencer Rinehart <anubis@overthemonkey.com>
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. |
Remove old code for increase shm by runtime. Need to use docker v1.10.0 or newer for it (moby/moby#16168)
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 niwa.hiedyuki@jp.fujitsu.com