<div dir="ltr">Hello,<div><br></div><div>I'm able to create containers which use a single file for their rootfs;</div><div><br></div><div>$ dd if=/dev/zero of=/rootfs.img bs=1 count=1024</div><div>$ mkfs.ext4 /rootfs.img</div>
<div>-- other debootstrap commands here --</div><div><br></div><div>The image runs successfully in both lxc-start, lxc-start-ephemeral and lxc-execute.</div><div><br></div><div>However if I then attempt to delete the rootfs image after running lxc-start or lxc-execute, the disk space is not given back and I have to reboot in order to reclaim the disk space.</div>
<div><br></div><div>Does anyone know why this might be happening? Perhaps LXC is keeping a scale descriptor open somewhere?</div><div><br></div><div>Any help would be really appreciated, can provide more info/debugging if needed.</div>
<div><br></div><div>Thanks</div><div><br>Cal</div></div>