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.
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