On Sun, Mar 5, 2017 at 7:13 AM, Marat Khalili <m...@rqc.ru> wrote: >> The other way is to leave in /var/lib/lxc/NAME/config only [...] and have: >> [...] in /var/lib/lxc/NAME/rootfs/etc/network/interfaces. Then everything >> works. > >> Which way is better? > > I also stumbled on nameservers issue when using config and switched to > /etc/network/interfaces more than a year ago. No problems so far. Didn't > find any other way yet. > > I'd also recommend you to install local DNS server and automatically put > names of new containers in its zone by the same script you use to assign IP > addresses. Helps accessing network services running in containers, if you > have any. > > I don't see any benefits in DHCP _unless_ you use LXD and plan to move your > containers around.
Do your containers talk to each other? If they do, it is more convenient to specify "mycontainer1.lxd", "mycontainer2.lxd", "mysql.lxd", etc inside the containers instead of dealing with IP addresses. Simos _______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users