hyperhq / hyperstart

The tiny Init service for HyperContainer
https://www.hypercontainer.io
Apache License 2.0
134 stars 63 forks source link

share /dev/shm for all the containers in the pod #327

Closed laijs closed 7 years ago

laijs commented 7 years ago

fix #323

All containers in the pod share the same ipc namespace. However, posix ipc primitives are shm_open() family whose behaviors implemented in glibc are to create&share the shm objects within /dev/shm (or scans /proceed/mounts for any tmpfs if /dev/shm is not tmpfs). So we have to create the only one tmpfs mount and share it to all the containers.

Signed-off-by: Lai Jiangshan jiangshanlai@gmail.com

bergwolf commented 7 years ago

lgtm!