Search code examples
linuxlxclinux-namespaces

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?


Solution

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

    Source