After increasing and decreasing the disk usage limit from the desktop (out of curiosity basically just to be on the “safe” side in case I needed in the future), and without being warned or asked about ANYTHING.. docker crashed and all volumes were purged. Basically 100GB of data gone within a blink. Un be lievable!!
The bad is that I lost a month of work, the good is that I learned my lesson.. containerisation my Â#$$.
The title is a little misleading. There is Docker CE and Docker Desktop. You created the topic in the Docker Desktop category and you menitoned increasing disk limit, so it seems to be pretty clear you are talking about Docker Desktop, but that is a little different on all platforms. It would help a lot if you could share which operating system you are using and which version of Docker Desktop. Ther is no Disk limit on Windows when using WSL2 and I am not sure about HyperV, but I guess you are using either Docker Desktop on macOS or on Linux.
In general, changing disk size is something that should be done carefully with backups as something could go wrong regardless of whether you are using Docker Desktop or not. Docker Desktop should of course warn you about the risks and this is what I can see on macOS when trying to decrease the disk size:
So it warns me that decreasing the disk size will delete all data indeed. The warning should be more visible probably as the gray text seems to be a general note, but it still mentions what will happen.
If this warning didn’t even appeared to you, you could report it as a bug on GitHub
My Docker Desktop (it was indeed MAC with Docker Engine: v29.2.0) crushed and maybe if it hadn’t, I would have seen this warning. But right after reopening the desktop, all volumes were gone (including the big one that contained the data).