Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninmonkey/cda9b47f476489c9e3d0878b90d5c018 to your computer and use it in GitHub Desktop.
Save ninmonkey/cda9b47f476489c9e3d0878b90d5c018 to your computer and use it in GitHub Desktop.
How to move Docker-Desktop-Data to another drive

About

Docker desktop throws 20GB on c:\ . This is how you can move that to another drive like D:\wsl.2023\

EverythingSearch query

ext:vhdx

refs

Commands to move an vhdx filesystem

πŸ’> wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu (Default)
docker-desktop
docker-desktop-data

πŸ’> wsl --shutdown

πŸ’> wsl --export docker-desktop 'D:\wsl.2023\docker-desktop.vhdx' --vhd
Export in progress, this may take a few minutes.
The operation completed successfully.

πŸ’> wsl --unregister docker-desktop-data
Unregistering.
The operation completed successfully.

πŸ’> wsl --unregister docker-desktop-data
πŸ’> wsl --import-in-place docker-desktop-data 'D:\wsl.2023\docker-desktop-data.vhdx'
The operation completed successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment