When installing docker in Windows 11, modify the default installation to C drive

1. Modify the default installation to C drive
2. If you have installed docker before, please delete the following directory: C:\Program Files\Docker
3. Create a new directory on D drive: D:\Program Files\Docker
4. Win+r, and Run cmd with administrator rights.
5. Execute the following command in cmd to establish a soft connection:

mklink /j "C:\Program Files\Docker" "D:\Develop\Docker"

Insert image description here

6. Place Docker Desktop Installer.exe under D:\Develop\Docker and execute this installation program to install Docker Desktop to the specified directory on drive D.

Insert image description hereSuccessfully installed in the D:\Develop\Docker\Docker directory.
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_44691253/article/details/132757503