sh-notion/notion_data_team_no_files/Dealing with massive Docker virtual disks 11a0446ff9c9800cb90df90e04780c48.md

16 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2025-07-11 16:15:17 +02:00
# Dealing with massive Docker virtual disks
## Scope
Situation: you are running out of disk space in your laptop. There are very high chances this is caused by how WSL and Docker manage disk space.
To check if this is truly the issue, take the following steps:
- Install WinDirStat if you dont have it: https://windirstat.net/
- Start it up and run a scan. It will show you which folders and files are soaking up disk space in your machine.
- If you see something along the lines of this screenshot (a single `ext4.vhdx` file eating up double or triple digit Gbs, hiding in some Docker/WSL folder), then its probably WSL and Docker that are at fault, and this guide is applicable to you. If not, sorry but youll have to look elsewhere. Note that WinDirStat can still be useful to spot where you are losing all your space.
## How to fix
- Follow the instructions here: [https://stackoverflow.com/questions/70946140/docker-desktop-wsl-ext4-vhdx-too-large](https://stackoverflow.com/questions/70946140/docker-desktop-wsl-ext4-vhdx-too-large)
- If the original page died, here you can find a Wayback Machine snapshot of it: http://web.archive.org/web/20241009132152/https://stackoverflow.com/questions/70946140/docker-desktop-wsl-ext4-vhdx-too-large