Created
September 18, 2022 19:44
-
-
Save Andrey2G/73b2947c67c78b34632fedffbc7bc838 to your computer and use it in GitHub Desktop.
When you working with Docker Desktop for a long time you will found that the file ext4.vhdx increasing the size and in some cases it happen very fast. You are also can click on Clean/Purge data on Docker Desktop side.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#stop Docker Desktop and wait when it completely stopped | |
#Run it as Administrator | |
Optimize-VHD -Path $ENV:UserProfile\AppData\Local\Docker\wsl\data\ext4.vhdx -Mode Full |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.hanselman.com/blog/shrink-your-wsl2-virtual-disks-and-docker-images-and-reclaim-disk-space