jamal <[email protected]> writes:
> One thing still confuses me...
> The app control point is in namespace0. I still want to be able to
> "boot" namespaces first and maybe a few seconds later do a socketat()...
> and create devices, tcp sockets etc. I suspect create_ns(namespace-name)
> would involve:
> * open /proc/self/ns/net (namespace-name)
> * unshare the netns
> Is this correct?
Almost.
create should be:
* verify namespace-name is not already in use
* mkdir -p /var/run/netns/<namespace-name>
* unshare the netns
* mount --bind /proc/self/ns/net /var/run/netns/<namespace-name>
Are you talking about an replacing something that used to use the linux
vrf patches that are floating around?
Eric
_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers
_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel