Operations 4 min read

How to Relocate Docker Desktop Images from C: Drive to Another Disk

This guide explains how to move Docker Desktop's image storage from the default C: drive to another disk on Windows by locating the data folder, exporting, unregistering, and importing the Docker‑desktop‑data WSL instance, then verifying the migration.

Open Source Tech Hub
Open Source Tech Hub
Open Source Tech Hub
How to Relocate Docker Desktop Images from C: Drive to Another Disk

Overview

Docker Desktop stores its image files on the C: drive by default; as the number and size of images grow, the C: partition can run out of space. The following steps show how to change the storage location by moving the underlying WSL instance.

Step 0x01 – Locate Docker’s Data Folder

Open Docker Desktop, go to Settings → Resources → Advanced . The right‑hand pane displays the current storage path. Copy the path and open it; the docker-desktop-data folder inside contains Docker’s data.

Step 0x02 – Export the docker-desktop-data Instance

First stop the Docker Desktop application. Then verify that the WSL instance is stopped with: wsl --list -v If the instance shows Running, shut down WSL: wsl --shutdown Export the instance to a backup file on the target drive (example uses D:\docker\docker-desktop-data.tar):

wsl --export docker-desktop-data D:\docker\docker-desktop-data.tar
D:\docker\docker-desktop-data.tar is the backup file location.

Step 0x03 – Unregister the Existing Instance

Remove the current WSL instance so it can be re‑imported elsewhere:

wsl --unregister docker-desktop-data

Step 0x04 – Import the Instance to a New Location

Import the previously exported tar file to the desired directory (example uses D:\docker\data) and specify the WSL version (2):

wsl --import docker-desktop-data D:\docker\data D:\docker\docker-desktop-data.tar --version 2
docker-desktop-data

– the instance name (must remain unchanged). D:\docker\data – the new folder where the instance will reside. D:\docker\docker-desktop-data.tar – the backup file created earlier.

After import, open the folder in Explorer to confirm the migration succeeded.

Verification

List the imported instance to ensure it is registered:

wsl --list -v
Start Docker Desktop and verify that images and containers appear correctly.

Conclusion

By following these steps, users can move Docker Desktop’s image storage from the C: drive to another disk, freeing up space and improving the overall Docker experience.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DockerWindowsFilesystemWSLImage storageDocker Desktop
Open Source Tech Hub
Written by

Open Source Tech Hub

Sharing cutting-edge internet technologies and practical AI resources.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.