0

I would like to know the mechanism to identify the network namespace of an LXC container. Basically I am looking for a mechanism to move the interface from the network namespace of an LXC back to the main namespace whenever an LXC crashes. For this, I need the network namespace of the lxc to start with.

pr-pal
  • 3,248
  • 26
  • 18
  • I think the namespace is the pid of the lxc-start process itself; I would recommend you have hook script to attach and detach the interface, if you find some issue in lxc code that fails to detach the interface; – Viswesn Jan 25 '16 at 09:20
  • No the namespace need not be same as the pid of the lxc-start process – pr-pal Jan 28 '16 at 13:17

0 Answers0