On 03/18/2014 11:46 AM, Devendrasing Patil wrote:
> Hi, 
>
> I am a kind of noob with lxc. 
>
>
> I wanted to know how do i get details of the server on which my lxc
> container has been hosted. What i meant is : On my Ubuntu Server
> (13.04), I have created a container X. Now from container X, how do i
> get name of my ubuntu server on which it has been created? 
>
>

AFAIK you cannot.
You need to provide that information from the host, eg.:

cd $LXCROOT
for container in *;do
 hostname -f > $container/rootfs/.location
done



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

Reply via email to