[lxc-users] Find out if one is inside a container

Christoph Mathys eraserix at gmail.com
Wed Jul 15 06:29:16 UTC 2015


On Wed, Jul 15, 2015 at 4:08 AM, Bostjan Skufca <bostjan at a2o.si> wrote:
>
>
> Does anyone know where that container variable gets its value from?
>

src/lxc/start.c in do_start() contains:

if (putenv("container=lxc")) {


More information about the lxc-users mailing list