HASSIO Docker Overlay2 folder consuming all disk space

Is there any tips to solve this issue ? Mine is about 7GB as well… A tried a lot of things mentioned in this post without any success.

Just for info, I know this is an old topic.
I have gained 12GB by deleting esphome with all data, and reinstalling.

2 Likes

Same here, after removing ESPHome 90% of the overlay2 space is freed

Running on RasberyPi
this is what I found
docker\overlay2 was taking more then 8gb
this is the top 10 folders from overlay2
239ac91ae58c86de48ace5a040f486218cc705ff19161e648a591bbd5a9a72a9 1303,78
0ffe42aed45de6813b9601bcfe870618b2250e2ab178e29ce5befcc63275ae69 1036,36
6a4d136db3887055721a176d4722e3b995cc564e632086cadc9903adb91de0ee 831,89
90fcb054bc9b33af5ca135610a3ac0b746590d1ec49b03a75688d7dfbd78e3da 387,06
d24cf4225ac4528d8025bccf7171456deae102fd996d71516b9a0dd6ac400bae 297,09
0c9499c0f4746dcf71ded4605cf5197b0200e0699e0408a1f5fd5bb2ad1431d6 220,31
a926d03e65a640f6afa64d2918267638218f52840e5d0a457c7fce4cad840422 202,59
ac2afc9e4bca5e5843ebf3c95f1791c9f90a12f0de2f24003b39db7b73f4c7df 158,61
cad2ef5a51159b07d3946742a0d0d17c52c19187279d510452bec3397d69fb15 158,26
0cc0bed4c857ebaf27e3b2ea6f7948d3d415f4c8f0084fa473f14885cd8768b8 138,64

inside the top 4 folders accounting for 3GB
diff\usr\local\lib\python3.13\site-packages

Folder SizeMB


hass_frontend 194,55
av.libs 108,43
scipy 87,52
googleapiclient 74,28
knx_frontend 52,05
speech_recognition 42,56
pandas 39,53
scipy.libs 31,82
numpy.libs 30,12
babel 27,6

Folder SizeMB


hass_frontend 150,38
av.libs 108,43
googleapiclient 74,28
pandas 56,94
speech_recognition 42,56
babel 27,6
debugpy 26,28
insteon_frontend 25,27
numpy.libs 24,97
selenium 21,35

etc.

16GB out of which 14GB is available for HA :grin:
HA recommends a minimum of 32GB, will have to probably upgrade but 120 is insane to be filled up.
Will have to automate docker system prune -a and then configuring log rotation in the daemon.json file (max-size: “10m”, max-file: “3”`).

HAOS here.

109.3G size, 87g USED. But du -sh / shows around ~ 50GB used.

The ‘weird’ space is from a failed restore of home assistant. But can’t find where to clean up.

This might help.

3 Likes

The link helped me find out that the overlay2 folder was the reason for my bloated system. What fixed it was “ha su repair”. I belive it worked because the Terminal was running with Protection mode turned off (for the app “Advanced SSH & Web Terminal”), as described in your link.

Now my overlay2 folder is reduced to 1/3 of what it was. Good help, @Impact, thank you! :slight_smile:

1 Like

I realised that every time I update my ESPhome devices, my used disk space grows A LOT. What I do is, after having updated all devices, just click the “CLEAN ALL FILES” button at the top of the ESPhome page:

This returns used disk space back to what it was before the updates, and it stays there until next time I update ESPhome-related stuff. This does not break anything since my understanding is that what’s cleaned are the build files, firmware images and things like that.

Hope this helps someone.

It doesn’t break anything, but it causes that each and every small change you make in yaml file causes a full compile each time. If you’d leave those files small changes are compiled way quicker.