[lxc-devel] How to know that whether a process run inside a container or not?

liu.sp at neusoft.com liu.sp at neusoft.com
Tue Dec 20 08:57:44 UTC 2011


Hi Greg Kurz ,Daniel Lezcano,

   Could you give me some guidance on how to check if a process run 
inside a container 
or host?

   In the kernel space ,we can check the level of pid to do it.
   But in the user space ,how to check it ?
   

Best regards
Spring

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------





More information about the lxc-devel mailing list