Linux user quotas from inside LXD container / guest

Well as it can be seen here it is not possible to enable standard linux users quota inside a container even using an ext4 formatted ZVOL. The container would need to do the mount itself I guess.

My use cases are not related to nested container. I have two:

  • my hosting panel uses quotas on / for websites user’s quota management
  • I wanted to build a multi user ssh backup container with quotas for each local user