The following method works for DockerDesktop v4.29 and a few version below. It may not apply to higher version. If anyone knows how to config this for higher version, please let us know.
- Install DockerDesktop v4.29. Do not start it.
- Go to C:\Users{username}\AppData\Roaming\Docker, there should be no setting.json file.
- Now start DockerDesktop, you should see setting.json is generated.
- Stop/quit Docker
- Open setting.json, find "customWslDistroDir" and set it to "D:\{yourdocker}\{images}"
- Restart Docker
- Check Setting\Resources, you should see your image path there.