[Lxc-users] Getting IP address of running container
Robin Monjo
robin.monjo at applidget.com
Thu Jul 11 14:45:25 UTC 2013
Hello,
I need to know the IP address of a running container in order to add a port forwarding rule with iptables. My containers are build using the default ubuntu template and use dhcp to obtain an IP.
I'm able to access the ip by reading the /var/lib/misc/dnsmasq.leases file. However I'm not sure this is reliable.
What do you think ? Any better way to do it ?
Regards,
Robin
More information about the lxc-users
mailing list