How to reduce size of docker ext4.vhdx

ext4.vhdx is taking up a lot of space. This is part of Docker Desktop in regards to wsl which is Windows Subsystem for Linux

ext4.vhdx

Open Docker Desktop and go to debug. The bug in the top menu

How to reduce size of docker ext4.vhdx

Clean ext4.vhdx

In the debug menu press the Clean / Purge data

How to reduce size of docker ext4.vhdx

Additional space

For additional space. You can remove all stopped containers, remember it’s prune all stopped container, so make sure this is okay. You can check stopped container by running.

docker ps -a

And to prune the stopped containers. Run

docker container prune
How to reduce size of docker ext4.vhdx