[lxc-users] unique container id

Serge Hallyn serge.hallyn at ubuntu.com
Thu Feb 5 15:47:50 UTC 2015


Quoting U.Mutlu (for-gmane at mutluit.com):
> U.Mutlu wrote, On 02/01/2015 05:16 PM:
> >Hi,
> >how can a program or a shell script get the unique ID of the container
> >it is running inside? For example the name of the container.
> 
> Hi people,
> has nobody an idea for this?

Sigh.  Try ls -li /proc/self/ns/pid


More information about the lxc-users mailing list