Skip to content

Instantly share code, notes, and snippets.

@brown99
Created August 19, 2021 12:04
Show Gist options
  • Save brown99/dfdb46e6b7761ce03dce4eee7a1de65d to your computer and use it in GitHub Desktop.
Save brown99/dfdb46e6b7761ce03dce4eee7a1de65d to your computer and use it in GitHub Desktop.
net stop com.docker.service
taskkill /IM "docker.exe" /F
taskkill /IM "Docker Desktop.exe" /F
wsl --shutdown
Optimize-VHD -Path $Env:LOCALAPPDATA\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