Change the docker storage location in docker desktop for windows

If you ran out of disk storage or want to move docker storage to another drive in windows you can simply follow these steps:

  1. click on setting gear on top right of docker desktop page
  2. on left side click on Resources
  3. click on advanced option under resources
  4. click on browse button next to disk image location. (default location is : C:\Users\your user name \AppData\Local\Docker\wsl\disk)
  5. select new folder on any disk drive and click ok.
  6. it creates a structure like this:
    d:\your new folder
    |_ DockerDesktopWSL
    |_ disk
    |_ main
    and moves docker files into these new subfolders.

This process helps free up space on your primary drive by relocating Docker’s storage to another drive.