[lxc-users] unique container id
U.Mutlu
for-gmane at mutluit.com
Thu Feb 5 16:54:42 UTC 2015
Serge Hallyn wrote, On 02/05/2015 04:47 PM:
> 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
Hi Serge,
I think this is only an ephemeral ID, isn't it?
I rather need a persistent ID for identifying the container.
It would even suffice to get the name of the container (from within the
container). Is this possible?
Thx
Uenal
More information about the lxc-users
mailing list