How could I install Docker for Windows on drive E: (my SSD C: is full)?

This worked for me under win10:

Open Command prompt with admin privileges, then move to dir with installer exe, then:

“Docker Desktop Installer.exe” install --installation-dir=“H:\Program Files\Docker”

Saved 2.5GB on C: drive.

Then in settings>Ressources>Advanced you can also change disk image folder location (you may need to run Docker as admin or you’ll get an error)