I would need a way to limit a container's disk size, mainly to test how the app behaves when there is not enough space on disk. The Docker container I'm trying to run uses a Linux image. The tricky bit is that I need to do it on Windows. I know about using tmpfs and some other tricks to do this, but none of them works on Windows. I imagine I could partition my actual disk and share that one to the container, but I'd like to avoid that for easier re-using (like for other people).
I don't really care how the solution would work, of course, I would prefer this to be done with a mount inside the docker container so that I can limit only the data folder, not the whole container and also preferably to work with docker-compose as well, but I guess this is pretty tricky anyway so even without this it would be helpful!