[Lxc-users] Is there a way to get the container name from inside the container?
Masood Mortazavi
masoodmortazavi at gmail.com
Tue May 21 04:30:25 UTC 2013
I seem recall that the host name is the same as container name.
Try to print/view the host name while in the conatiner.
You can also configure your .bash_profile to ensure the host name (i.e the
container name in this case) appears on your bash command prompt.
Good luck,
m.
On Thu, May 16, 2013 at 2:08 PM, Vallevand, Mark K <
Mark.Vallevand at unisys.com> wrote:
> Is there a way to get the container name from inside the container?****
>
> ** **
>
> Regards.
> Mark K Vallevand Mark.Vallevand at Unisys.com****
>
> May you live in interesting times, may you come to the attention of
> important people and may all your wishes come true.****
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.****
>
> ** **
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130520/c140a305/attachment.html>
More information about the lxc-users
mailing list