# Disk space issues on apt install while building container

**URL:** <https://forums.docker.com/t/disk-space-issues-on-apt-install-while-building-container/152222>\
**Category:** Image Builds\
**Created:** [August 12, 2026, 7:51am UTC](https://forums.docker.com/t/disk-space-issues-on-apt-install-while-building-container/152222 "2026-08-12T07:51:10Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [August 13, 2026, 7:31pm UTC](https://forums.docker.com/t/disk-space-issues-on-apt-install-while-building-container/152222/10 "2026-08-13T19:31:56Z")

</div>

That is old indeed, so your problem can be related to this issue I mentioned :

> [@Docker Desktop WSL2 — VHDX grows by ~1.5GB after every update, no way to reclaim space](https://forums.docker.com/t/docker-desktop-wsl2-vhdx-grows-by-1-5gb-after-every-update-no-way-to-reclaim-space/151729):
>
> Hello, I’m running Docker Desktop on Windows 11 with WSL2 backend. My setup is specific because I migrated all Docker data to a dedicated 128GB SSD (D: drive). My configuration : Windows 11 25h2 Docker Desktop 4.71 WSL2 with only one distribution : docker-desktop VHDX location : D:\mydocker\DockerDesktopWSL\disk\docker\_data.vhdx 8 containers all running, all data mounted as external volumes on D: and E: Total Docker data declared by docker system df : ~12.4 GB Actual VHDX size : ~15.9 GB Pr…

It was fixed in Docker Desktop 4.76:

[https://docs.docker.com/desktop/release-notes/#4760](https://docs.docker.com/desktop/release-notes/#4760)

This was the bug [https://github.com/docker/desktop-feedback/issues/375](https://github.com/docker/desktop-feedback/issues/375)  
The release notes point to another issue. I believe that is a mistake. That is related too, but not closed.

So you should first upgrade Docker Desktop that will delete the cache files. Otherwise you could manually delete some now, but better letting Docker Desktop do it.

---

_[View the full topic](https://forums.docker.com/t/disk-space-issues-on-apt-install-while-building-container/152222)._
