Comment 13 for bug 1307829

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1307829] Re: /run/netns/* gets umounted on the host when a container starts

Quoting Kaloyan Ganchev (<email address hidden>):
> Do you think there is a better way to work around this issue other than
> recreating the non lxc network namespaces after all lxc containers
> start? Until a fix is release of course .

Yes, if you're starting the containers by hand, then you should be able
to do so from a private mounts namespace, like so:

sudo lxc-unshare -s MOUNT -- /bin/bash
mount --bind /proc/mounts /etc/mtab
mount --make-rslave /
lxc-start -n mycontainer