[lxc-users] Get the ip address of the host that hosts a container

Luis M. Ibarra michael.ibarra at gmail.com
Mon Jun 29 20:43:13 UTC 2015


You can't. The host and the container are in different network namespaces.
You can get only the default gw of your container which is the endpoint of
your pipe if you're using veth.

Regards,
On Jun 29, 2015 6:40 AM, "Thouraya TH" <thouraya87 at gmail.com> wrote:

> Hi all
>
> Please, is there a command to get the ip address of the host that hosts a
> container ?
>
> i'd like to use this command inside the container.
>
> Thanks a lot.
> Best Regards.
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150629/b013c42e/attachment.html>


More information about the lxc-users mailing list