When I create an instance from an image repository, image is pulled and stored locally as a zfs dataset (or 2 datasets in case of VMs).
After deleting instance, images stick around forever and add up in used storage space, especially the vm.block despite no instance using them.
lxc image list doesn’t show whether they are used by an instance.
How can I determine zombie images and clear them periodically, without the hard way of zfs list and reverse comparing with instances base image lxc ls --all-projects -c F
zfs list -o name,origin should provide you a good starting point. Also, you can check which image was used for a given instance with: lxc config get $INSTANCE volatile.base_image.