October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk4 min

Docker Desktop Taking Up Too Much Space on Windows? How to Fix It

Docker cleanup can free space inside its virtual disk without shrinking the file on Windows. Find the backing disk, then use the reclamation method for your Docker Desktop architecture.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If Docker Desktop still takes up a lot of space on Windows after cleanup, deleting Docker data and shrinking its virtual disk are separate steps. First identify the backing disk and remove only data you no longer need. Then use the space-reclamation method for your Docker Desktop storage architecture—or move the disk image to another drive.

Why is Docker Desktop using so much disk space?

Docker Desktop stores Linux container data in a virtual disk on Windows. Removing images, stopped containers, build cache, or other Docker objects can free capacity inside that disk without immediately reducing the amount of space its virtual disk file occupies on the Windows drive.

As an Amazon Associate I earn from qualifying purchases.

That means Docker’s view of data usage and the file’s size in File Explorer can differ. A virtual disk’s configured maximum capacity is not the same as the space it currently consumes on your PC. Microsoft notes that recent WSL versions may show a default virtual-disk maximum of 1 TB even when the Windows device has less free space; earlier WSL versions may use a different default. Microsoft explains WSL disk-space behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Find the Docker data that is taking up space

  1. Check Docker’s usage information. In a terminal where Docker commands work, run docker system df to review Docker’s reported usage. Treat this as an inventory of Docker objects, not a measurement of the backing file’s current Windows allocation.
  2. Check the virtual disk location. In Docker Desktop, open Settings > Resources > Advanced and look for the disk image location and disk usage settings available for your configuration. Docker documents that these settings vary by backend. See Docker Desktop settings.
  3. Compare with the host file. If you use the default WSL 2 setup, Docker’s data is under %LOCALAPPDATA%Dockerwsl. Docker’s backup guide gives %LOCALAPPDATA%Dockerwsldiskdocker_data.vhdx as the default WSL 2 disk path. Customized locations and other backends use different paths. Check Docker’s backup and restore guidance.

Do not assume that a large capacity shown for the virtual disk means the same amount is being used on the Windows drive. Compare the actual file size with Docker’s usage information to distinguish allocated host storage from data Docker reports inside the environment.

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C

Remove only Docker data you no longer need

Use Docker’s usage report and cleanup controls to decide what is safe to remove. For example, docker system prune removes unused Docker objects such as stopped containers, unused networks, dangling images, and build cache. Review Docker’s prompts and your project needs before confirming.

Volumes are different: they can hold persistent application data, such as databases or uploaded files. Do not include volume deletion in a broad cleanup unless you have verified that the volumes are disposable or backed up. Cleaning Docker objects can make data available for reclamation, but it does not guarantee that Windows immediately gets the space back.

Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.

Get Windows storage back from the virtual disk

The correct approach depends on Docker Desktop’s backend and data architecture. Do not apply a compaction procedure to a virtual disk just because it has a familiar extension; first identify that it belongs to the Docker installation you intend to maintain.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

WSL 2 using the Mono architecture

Docker Desktop 4.34 introduced a rollout of automatic host-space reclamation for WSL 2 installations using the Mono distribution architecture. Docker’s 2024 announcement said that after you quit the app, Docker Desktop checks whether storage can be returned to the host; it described a scan starting when Docker estimates that at least 16 GB can be reclaimed. This is documented rollout behavior, not a guarantee for every version, architecture, or installation. Read Docker’s Desktop 4.34 announcement.

Rank #3
SSK Portable SSD 500GB External Solid State Hard Drive USB C Up to 1050MB/s
  • Capacity Display Variance: 500GB external ssd often appears as around 465GB on Windows. MacOS can show full 500 GB capacity. This is binary calculation difference and doesn’t affect SSD hard drive actual physical storage
  • 1050 MB/s Speed: Instantly access to your files with blazing-fast 10Gbps external SSD read up to 1050MB/s and write up to 1000MB/s. LED Light indicates USB SSD instant activity
  • Data Security: Solid state drives S.M.A.R.T. health diagnostics​ and adaptive TRIM optimizing data block management ensures consistent write speeds and extends the longevity of the portable SSD
  • USB-C & USB-A Cable: Both cables featuring rapid USB 3.2 Gen2, this USB SSD effortlessly bridges devices, enabling seamless cross-platform file transfers and backup between computers, smartphones, tablets and iPhone
  • Always Fast: No slowdowns for large file transfers. With SLC caching (25% of current available capacity allocated as high-speed cache), this external SSD delivers steady 10Gbps for transfers within the cache capacity

If your installation uses this architecture and a recent compatible Docker Desktop release, quit Docker Desktop and allow its documented process to run. If Windows storage does not change, check your architecture and Docker’s current instructions rather than assuming the automatic feature applies to your setup.

WSL 2 still using docker-desktop-data

Docker distinguishes older installations that still use the docker-desktop-data distribution from the Mono architecture. For the former, Docker points users to manual VHDX compaction tools. Confirm that this is your architecture, locate the correct Docker virtual disk, and follow the current Docker and WSL instructions for stopping the relevant services and compacting it. Do not use a generic command sequence on an unrelated Linux distribution’s VHDX. Docker’s architecture and reclamation notes explain the distinction.

Rank #4
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Hyper-V or Docker VMM

Docker Desktop settings and disk-management options differ across supported backends. Check the disk image location and the backend-specific instructions in Docker’s current settings and maintenance documentation; do not assume WSL 2 compaction steps apply to Hyper-V or Docker VMM.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Move Docker’s disk image off the system drive

If your goal is to stop Docker from using space on the Windows system drive, Docker Desktop documents a configurable disk image location for supported configurations. Open Settings > Resources > Advanced, review the available location control, and follow the prompts in your installed version. Confirm the destination has enough free space for your development work before changing it. The exact option depends on the backend and Docker Desktop version. Docker’s settings documentation lists the relevant controls.

Best Value
Sale
Samsung T7 Portable SSD 1TB Titan Gray, USB 3.2 Gen 2, Up to 1,050MB/s | Reliable External Solid State Drive Storage for Gaming, Students, Professionals (MU-PC1T0T/AM)
  • MADE FOR THE MAKERS: Create; Explore; Store; The T7 Portable SSD delivers fast speeds and durable features to back up any endeavor; Build your video editing empire, file your photographs or back up your blogs all in an instant
  • SHARE IDEAS IN A FLASH: Don’t waste a second waiting and spend more time doing; The T7 is embedded with PCIe NVMe technology that brings fast read and write speeds up to 1,050/1,000 MB/s¹, making it almost twice as fast as the T5
  • ALWAYS MAKE THE SAVE: Compact design with massive capacity; With capacities up to 4TB, save exactly what you need to your drive – from large working files to game data and everything in between
  • ADAPTS TO EVERY NEED: Whether using a PC or mobile phone, count on the T7 for extensive compatibility²; It’s a true team player when it comes to heavy-duty application usage or file-saving
  • HI RESOLUTION VIDEO RECORDING: Record Ultra High Resolution (4K 60fs) videos directly onto the T7 Portable SSD with your favorite camera or mobile devices; Supports iPhone 15 Pro Res 4K at 60fps video and more³

Back up Docker data before manual disk work

Docker advises fully stopping Docker Desktop before backing up its VM disk. The default WSL 2 backup location is %LOCALAPPDATA%Dockerwsldiskdocker_data.vhdx, but use the configured location and backend-specific instructions if your setup differs. Make a backup before manual virtual-disk operations, and never delete the VHDX directly as a cleanup shortcut: it may contain Docker’s images, containers, volumes, and other data.

For the stop and backup requirements, follow Docker’s backup and restore guide.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.