Serge Hallyn wrote, On 02/05/2015 04:47 PM:
Quoting U.Mutlu ([email protected]):
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


_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to