Renaming LXC container

How do I rename LXC (no LXD) container properly? Do I just change the “lxc.uts.name” key?

That works to change the hostname, if you want to also change the cgroup names, … then you should rename the folder in /var/lib/lxc too.