Skip to content
Advertisement

How to get the IP address of an LXC container?

I have started the lxc using lxc-start. Now, how I can get the IP address of the container?

Advertisement

Answer

$ awk '{ print $4,$3 }' /var/lib/misc/dnsmasq.leases | column -t
containername  10.0.3.83

Source

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement