Comment 7 for bug 1307829

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: network namespace error

Ok I see the problem but am not sure what to do about it.

iproute makes /var/run/netns MS_SHARED. When a container starts up, it umounts everything. So the netns bind mounts are being umounted on the host.

Ideally it woudl be as simple as marking /var/run/netns MS_SLAVE before spawnign the container. However, 'mount --make-rslave /var/run/netns' fails because /var/run/netns doesn't appear to be in my mounts table. Rather /netns is.