[lxc-users] DHCP or static ip address?

Matt Green mephi at mephi.co.uk
Thu Mar 2 19:37:29 UTC 2017


I think it depends on your architecture and use cases. Managing thousands
of containers with static IPs would be a complete pain.

Personally, I went with static as I have a small deployment, so I made
python build scripts that that created an interfaces file.

Matt

On 2 Mar 2017 19:32, "Yuri Kanivetsky" <yuri.kanivetsky at gmail.com> wrote:

> Hi,
>
> From what I can see
>
> https://github.com/lxc/lxc/blob/lxc-2.0.7/templates/lxc-ubuntu.in#L104
>
> LXC container by default expects to find DHCP server somewhere on the
> network. Which makes me think if I should set up one, which might be
> not easy. Or switch container to static ip after creation.
>
> What do you say?
>
> Regards,
> Yuri
> _______________________________________________
> 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/20170302/ab2b171d/attachment.html>


More information about the lxc-users mailing list