Changing VM disk size does nothing for a docker container pull

I’m running a oci-container inside a VM for testing but it keeps failing due to size constrains of the virtual machine. I’ve tried changing virtualisation.diskSize but when docker pull starts, it starts to fill /dev/disk/by-label/nixos and overlay filesystems but they are still 1GB. Eventually this runs out of space and the pull fails.

How to make a docker pull work in such conditions? Why virtualisation.diskSize does not work here?

Did you delete the existing disk image after it was generated? It won’t get regenerated if already present. (Alternatively you can resize the image manually if you don’t want to lose data.)

Indeed, I needed to erase the disk so it could be recreated in the next run.

Thank you very much for the help, marking as solution.