Enable core dump in lxd container

Regarding lxc ubuntu mycontainer, it’s an alias. See

Set up the alias on your computer and try again. I think the issue you are facing may be related to the way you su to the non-root user.