Try this test on docker desktop 4.48 on Windows. Adjust it to your own settings.
docker run --rm -v "H:\mount" alpine sh -c "df -h /data/db && dd if=/dev/zero of=/data/db/.probe bs=1M count=64 && rm /data/db/.probe"
I have H:\ in my file shares in docker. The problem didn’t occur in previous versions of docker. Because of this, some apps that use mounted volumes may stop running due to false “no space left on device” message.
I tried the correct command on Windows first using Docker Desktop 4.47. Worked. Upgraded to 4.48 and atill worked.
If you really used the command you shared, that just creates an anonymous volume using the specified path as a path in the container, not on the host. So you wil find a folder in the container calld “/G:”
Since it is anonymous volume, it uses the space inside Docker Desktop so it doesn§'t matter whether you write in the created folder or anywhere in the conatiner. If you cannot write 64 megabytes on the container’s filesystem, that is still something you would need to solve, but we can talk about that after you confirmed what your actual executed command was.