rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 656 forks source link

/dev/shm size can not be changed by shm-size #1371

Open xw1198 opened 7 years ago

xw1198 commented 7 years ago

RancherOS Version: (ros os version) v0.7.0 Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.) vmware

docker version 1.12.1

wrote s sample test.yml test: image: ubuntu:14.04 labels: io.rancher.os.detach: "true" io.rancher.os.scope: system uts: host net: host ipc: host shm-size: 256m privileged: true command: "/sbin/init splash"

after the test test container up, check the /dev/shm size in test container, it is still 64M, did not changed by shm-size

joshwget commented 7 years ago

The version of libcompose we're using doesn't support shm_size yet. Once we update it should be supported.

A pretty relevant PR was just made in libcompose too (docker/libcompose#411).

randygregory commented 5 years ago

Encountered a situation where I need to increase shared memory on a container. Could someone provide a status update on current ability to support setting shm_size please? (my attempt w/ros1.5.0 failed) Thanks!

orange888 commented 4 years ago

How do we adjust/increase /dev/shm?

Thanks.