Open mviereck opened 2 years ago
Hi @mviereck , thanks for filing the issue.
The --ipc=shareable
should work, but I can see why it would fail right now: Sysbox always uses the user namespace (userns) in containers, and the ipc namespace is a "child" of the container's userns. Thus, sharing an ipc ns between containers implies sharing the user-ns, and Sysbox is not realizing this. As a side note, Sysbox does do this for network namespace (if it detects 2 containers are on the same network ns, it will place them on the same parent user-ns).
The --ipc=host
won't work with Sysbox, because you can't do this for containers that use the user-ns. More info here. I need to add --ipc
to the table shown in there.
Thanks for the insight!
Would it make sense if Sysbox would enable the same userns in this case ipc is shared?
Or an option like --userns=container:CONTAINERID
?
However, this is not important for me yet.
Would it make sense if Sysbox would enable the same userns in this case ipc is shared?
Yes, that would be the fix.
However, this is not important for me yet.
Good to know, thanks.
If I try to share the same IPC namespace of two containers, the first one started with
--ipc=shareable
and the second one with--ipc=container:CONTAINERID
, I get this error at the start of the second container:Another IPC issue: If I start with
--ipc=host
I get:The second error message sound like there is no IPC option specified.
This happened with the sysbox test version for id mapped mounts 0.5.0-dev, but I assume the IPC issue is unrelated to the mounts.