Lxd limit disk space inside container btrfs

Hi all,

I want to limit disk space inside my container. I alredeay searched the forum and the following command did not work.

i have on btrfs storage pool. (default) but the command below did not work. If i go to the container i still see all the storage?

lxc config device override root size=20GB

Hi @ckruijntjens,

I suppose, container name is missing.


Nope. I just did it true btrfs quota. The only downside is it does not show the limit inside the container.

This is related to how BTRFS expose mount informations in the subvolumes. Unlike ZFS or LVM, you will never see your limit/quota explicitely from the inside of your containers, this works as intended.