I’d like to configure two unprivileged containers so that they can perform inter-container IPC. They need to share /dev/shm, as well as ipc, user and net namespaces.
It’s easy enough to share namespaces between containers via the following lxc config options:
lxc.namespace.share.ipc = name_of_container
lxc.namespace.share.user = name_of_container
lxc.namespace.share.net = name_of_container
lxc.namespace.share.cgroup = name_of_container
But what is the best way to share /dev/shm between containers? (It must be different from the host’s /dev/shm.)