Docker desktop Linux - Move images/containers to another hard drive

Hi, I have just finished setting up Docker desktop on a Fedora 41 VM where I have 2 hard drives. Docker is setup on the first HD which is 40 Gig and I need to tell docker that all images/containers should go to the 2nd HD which is 80Gig.
I looked into the settings but not sure where to change it.

Thanks for your help

Finally, if your issue has not been addressed elsewhere, running:

  • :whale: :arrow_right: Settings :arrow_right: Diagnose & Feedback :arrow_right: Open Issues.

This forum is not an official product support or issue reporting channel.

You can find the answer in the FAQ

https://docs.docker.com/desktop/faqs/linuxfaqs/#how-do-i-move-the-file-to-a-bigger-drive

How do I move the file to a bigger drive?

To move the disk image file to a different location:

  1. Select Settings then Advanced from the Resources tab.
  2. In the Disk image location section, select Browse and choose a new location for the disk image.
  3. Select Apply & Restart for the changes to take effect.

Do not move the file directly in Finder as this can cause Docker Desktop to lose track of the file.

Hi rimelek, I did change when I selected apply & restart I got the following error

I did gather Diagnostics, the id is
604E24F6-2FA0-4EF0-8430-6FE7D156F2C0/20241102094809

I restarted the VM and in settings I see that docker reverted back to 1st disk

As a Docker community, we don’t see diagnistics. You can share the ID on GitHub

My only idea is removing the destination “DockerDesktop” folder before the attempt of moving the disk image. But I remember many reports related to moving the disk image on different platforms. There were issues on macOS as well, and I don’t know what is the current status of this feature.

If nothing else works, you can try to stop Docker Desktop, move the original the “DockerDesktop” folder to a new location, and create a symbolic link at the old location pointing to the new location.