[lxc-users] Is this a bug
Serge Hallyn
serge.hallyn at ubuntu.com
Fri Apr 17 15:34:29 UTC 2015
Quoting Björn Mittelsdorf (bjoern.mittelsdorf at scheer-management.com):
> Hi all,
>
> in Ubuntu trusty a clone of an Ubuntu container gets a new hostname but the line containing the hostname in /etc/hosts is not updated.
> This results in error messages when using sudo or similar stuff.
>
> I hesitate to file this as a bug as it is very easy to fix this, but on the other hand it creates a difference between original and clone...
> Any opinions?
>
> Best regards
>
> Björn
This is supposed to be handled by
/usr/share/lxc/config/common.conf
which has a line:
lxc.hook.clone = /usr/share/lxc/hooks/clonehostname
which does update /etc/hosts.
More information about the lxc-users
mailing list