Skip to content

Instantly share code, notes, and snippets.

@Andrey2G
Created September 18, 2022 19:44
Show Gist options
  • Save Andrey2G/73b2947c67c78b34632fedffbc7bc838 to your computer and use it in GitHub Desktop.
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.
#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