How uninstall the vm? #485

Open
opened 2025-12-29 01:19:45 +01:00 by adam · 3 comments
Owner

Originally created by @DenisLevy76 on GitHub (Mar 17, 2023).

I need to free up space on my SSD, how do I delete the vm? I'm using windows

Originally created by @DenisLevy76 on GitHub (Mar 17, 2023). I need to free up space on my SSD, how do I delete the vm? I'm using windows
Author
Owner

@PTAHume commented on GitHub (May 6, 2023):

just load up docker desktop, select images and delete the sickcode image, you can also move the vm to another drive with

wsl --shutdown
wsl --export docker-desktop-data C:\data.tar
wsl --unregister docker-desktop-data
wsl --import docker-desktop-data 'D:\Virtual Machines\Docker\\' 'c:\data.tar' --version 2

you can delete the tar file or keep it as a backup; or compress your vm with

Optimize-VHD -Path "c:\location to vm\ext4.vhdx" -Mode Full
@PTAHume commented on GitHub (May 6, 2023): just load up docker desktop, select images and delete the sickcode image, you can also move the vm to another drive with ``` wsl --shutdown wsl --export docker-desktop-data C:\data.tar wsl --unregister docker-desktop-data wsl --import docker-desktop-data 'D:\Virtual Machines\Docker\\' 'c:\data.tar' --version 2 ``` you can delete the tar file or keep it as a backup; or compress your vm with ``` Optimize-VHD -Path "c:\location to vm\ext4.vhdx" -Mode Full ```
Author
Owner

@DenisLevy76 commented on GitHub (May 10, 2023):

Thank you!

@DenisLevy76 commented on GitHub (May 10, 2023): Thank you!
Author
Owner

@PTAHume commented on GitHub (May 10, 2023):

np glad was able to help :)

@PTAHume commented on GitHub (May 10, 2023): np glad was able to help :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#485