[Lxc-users] mapping host PID <-> container PID

Serge Hallyn serge.hallyn at canonical.com
Tue May 3 16:38:37 UTC 2011


Quoting Daniel Lezcano (daniel.lezcano at free.fr):
> Yes. And I think the positive side effect is we can determine if the
> pid belongs to the same pid namespace than the current one when the
> container_init is 1, no ?

Yup.  (Presumably if one happens to access a /proc for a non-descendent
pid-namespace, we'll print 0 for both the vpid and the container_init pid)

Sounds great, thanks guys.

-serge




More information about the lxc-users mailing list