[lxc-users] Setting hostname different than container name
Ron Kelley
rkelleyrtp at gmail.com
Sat Aug 19 20:48:51 UTC 2017
Greetings all,
Trying to set the container hostname different that the container name. Editing /etc/hostname and /etc/hosts seems to work on Ubuntu but not on CentOS 6 containers. What is the proper way to set the hostname so it is persistent among reboots for CentOS containers? The LXD config guide (https://github.com/lxc/lxd/blob/master/doc/configuration.md) has no mention of a hostname keyword.
Thanks.
-Ron
More information about the lxc-users
mailing list