My C:\ drive is running out of space how can I force docker to store image and container files on my D:\ drive?

I have Docker Desktop v 4.9.0 running on Windows/10 home with WSL2.
I assume that Docker is storing all the image and container files on my C:\ drive or some alias to it - although I have yet to find where.
My C:\ drive is running out of space so I want to force Docker to store the image and containers on my D:\ drive.
How do I do that?

When I look in Settings, I find:
Resources
Advanced
You are using the WSL 2 backend, so resource limits are managed by Windows

Since I don’t often use Windows, and I am not on Windows right now, I sarched for a solution for you:

This solution might be outdated if Docker Desktop has changed, but I think the export/import way should work. This is how I moved my WSL distributions (not docker-desktop-data) to an other drive as well.