Windows Docker: Disk pressure on WSL files


There was a phenomenon that Disk became 100% after doing Docker build many times with Widnows10.

It turns out that the WSL ext4.vhdx file occupies over 100GB.


Disk compression with WSL image.png

The problem is that the WSL 2 based engine doesn't seem to release the disk.

How to solve

Remove WSL 2 based engine (use Hyper-v backend)

For now, remove the WSL below and click "Apply & Restart" to restart.


Erase ext4.vhdx

wsl --shutdown

wsl --list --verbose



wsl --unregister docker-desktop-data

wsl --unregister docker-desktop

that's all

Recommended Posts

Windows Docker: Disk pressure on WSL files
Using Docker on Windows10 Home WSL2
Introducing Docker Desktop for Windows on WSL2
M.S. docker on Windows
Docker installation on WSL2
Operate Docker Desktop for Windows on Linux (WSL)
Install Docker on Windows 10 PRO
Easily build Redmine on Windows using WSL2 and Docker
Run openvpn on Docker (windows)
Try Docker on Windows 10 Home
Use Docker Compose on Windows 10 Home
Easily handle war files on Windows
Try Docker on Windows Home (September 2020)
Until you put Ubuntu 20 on Windows 10 Home and WSL2 and run Docker
I tried running Docker on Windows Server 2019
Run NordVPN on Docker (Windows) Ubuntu container
Run Embulk on Docker to convert files
Using JupyterLab + Java with WSL on Windows 10
Try putting Docker in ubuntu on WSL
Docker on wsl2 no longer says yes or no
Liberty on Docker
Docker on Ubuntu18.04 on WSL2 and VSCode installation instructions
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
Redmine on Docker
A memo when building a Rails 5.2 development environment using Docker Desktop + WSL2 on Windows 10 Home
I built an Ubuntu environment on Windows 10 using WSL2.
I tried using Docker Desktop for Windows on Windows 10 Home
Create Chisel development environment with Windows10 + WSL2 + VScode + Docker
Install Corretto 8 on Windows
Docker installation on CentOS 6
python notes on docker
Explode Docker with WSL2
Install Docker on Manjaro
How to create an environment that uses Docker (WSL2) and Vagrant (VirtualBox) together on Windows
ubuntu on wsl part 10
Run phpunit on Docker
Measures for permissions when building MySQL with Docker on WSL2
The story of fighting ubuntu errors 0x80370114, 0x80000000 to enable docker desktop with wsl2 on windows10 home