On Mon, Aug 22, 2016 at 1:51 PM, Sven Vermeulen <sw...@gentoo.org> wrote: > > Yes, wouldn't the Docker project be happy to take on a patch that uses > gethostname() or so? >
This might be another option: symlink to /proc/sys/kernel/hostname I'm not sure if somebody can find a flaw in this. It appears to use the UTS namespace hostname inside containers, which is what you'd want. -- Rich