1. After installing docker desktop, do not open it yet. 2. Create
a new directory D:\ProgramData\Docker
3. Under C:\Users\your username\AppData\Local, open cmd or powershell and execute the following command. The command syntax is omitted. There are different.
powershell command:
cmd /c mklink /J Docker D:\ProgramData\Docker
cmd command:
mklink /J Docker D:\ProgramData\Docker
4. Start docker desktop and modify the Disk image location. You need to restart after saving.