Closed tiran closed 1 month ago
Let's try this and see if it works better. OOC do you test if it solved the MPI issue in a container?
Let's try this and see if it works better. OOC do you test if it solved the MPI issue in a container?
$ bwrap --unshare-net --dev-bind / / -- /usr/lib64/openmpi/bin/mpicc -showme:compile
-I/usr/include/openmpi-x86_64
$ unshare -rn -- /usr/lib64/openmpi/bin/mpicc -showme:compile
[hostname:1498104] opal_ifinit: unable to find network interfaces.
-I/usr/include/openmpi-x86_64
bwrap
does not work for us. It requires additional permissions and adjustments to work in an unprivileged container. We want a system that works in podman
out of the box and in docker
with minimal adjustments.
Bubblewrap is another tool for unsharing namespaces. It sets up a network namespace with a disconnected loopback.
Fixes: #472