Quoting Binknight (zheng_hua...@163.com): > hi, > i have two processes running in two containers on the same hardware node, > they are expected to communicate with shared memory IPC mechanism, but it > turned out to be failed. It seems that the shared memory created in one > container is not visible to process in other container because different > namespace. is there any way to address this problem?
Hm, I thought you could specify the namespaces to be unshared in lxc.conf, but I see you can't. Given the flexibility that lxc strives toward I find that surprising. Please feel free to write a simple patch to add an lxc.ns option to lxc.conf, and use that in start.c to pick the namespaces to unshare. Then you would create a shell in a new IPC ns, lxc-unshare -s IPC -- /bin/bash and from there start the two containers without IPC in their clone flags, so that they would share an IPC ns with each other, but not with the host. -serge ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users