F5F Stay Refreshed Software Operating Systems The VHD size during installation appears unusually high.

The VHD size during installation appears unusually high.

The VHD size during installation appears unusually high.

M
mitchellb213
Member
148
02-17-2025, 08:54 AM
#1
Hey everyone! I realized my C drive was filling up some time ago. Checking wiztree revealed some puzzling sizes, and I also ran the df command during my WSL install. Those results were quite different too. I have Docker Desktop set up, but it seems mostly empty except for a few Kubernetes images. Can anyone help clarify what’s going on and suggest ways to reduce the size of the VHDs? Let me know if you need more details about my system. Thanks!
M
mitchellb213
02-17-2025, 08:54 AM #1

Hey everyone! I realized my C drive was filling up some time ago. Checking wiztree revealed some puzzling sizes, and I also ran the df command during my WSL install. Those results were quite different too. I have Docker Desktop set up, but it seems mostly empty except for a few Kubernetes images. Can anyone help clarify what’s going on and suggest ways to reduce the size of the VHDs? Let me know if you need more details about my system. Thanks!

M
Madi4067
Member
129
02-17-2025, 05:49 PM
#2
Consider using the admin terminal and halting WSL with wsl --shutdown. Then execute optimize-vhd on the specified file. This could potentially reduce size, though it isn't guaranteed.
M
Madi4067
02-17-2025, 05:49 PM #2

Consider using the admin terminal and halting WSL with wsl --shutdown. Then execute optimize-vhd on the specified file. This could potentially reduce size, though it isn't guaranteed.

S
SirJoeyGhost
Junior Member
9
02-19-2025, 10:16 PM
#3
This repository contains the WSLCompact project from okibcn.
S
SirJoeyGhost
02-19-2025, 10:16 PM #3

This repository contains the WSLCompact project from okibcn.

A
ali_styler
Junior Member
23
02-20-2025, 06:46 AM
#4
Thanks! I'll look into it once I'm back.
A
ali_styler
02-20-2025, 06:46 AM #4

Thanks! I'll look into it once I'm back.