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

Ulli Horlacher framstag at rus.uni-stuttgart.de
Thu Apr 28 07:28:27 UTC 2011


Is there a way to get the corresponding host PID for a container PID?

For example: inside the the container the process "init" has always PID 1.
But what PID has this process in the host process table?

ps aux | grep ... is not what I am looking for, I want more robust solution.

-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: horlacher at rus.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/




More information about the lxc-users mailing list