I've defined my Disk image size to a mere 16GB, and Docker is allocating 32GB as of this moment. I have had the issue before, when the limit was the default 64GB, Docker was using almost 80GB.
I reduced this limit, accepting the warning that my images would be deleted, but nothing changed, it indicated that the size was 16GB but was still using 64GB.
I ran docker prune
, deleted all my images, containers and volumes and the size didn't reduce by a single Gigabyte.
In the end I decided to reinstall docker altogether, but even after the removal I had to manually delete the content from the path (/home/victor/.docker/desktop/vms/0/data
)
My question is: How can Docker bypass its own Disk image size limit? Could it be allocating the disk space and then not using it? Or could it be missing some permission from the os to delete the actual files and just indicating that it has deleted but hasn't?
I'll have to reinstall Docker a second time after just two weeks, loosing all my volumes data and having to pull all the images yet again.
I'm using Ubuntu 22.04 64-bit