How to set $HOME in ubuntu image

On an ubuntu host, the newly created ubuntu lxc has root’s HOME set to /home/host-user where host-user is the username of ubuntu host who created that lxc.
Is this normal behavior or are there arguments I need to pass to lxc?
[Pls forgive me for not reading / advance searching if this issues has been discussed before. I am also new to lxc]
TIA, Ravi

It’s most likely just lxc-attach passing on your environment variables. There are flags you can pass to it to change that behavior and have it strip variables.

Thanks. I used -v option to set HOME. I wasn’t aware environment is carried over to new lxc.