/var/lib/docker/overlay2 disk usage Very High

I have a new forum, which currently has around 60 users, and currently only about 3 topics. (I only invited users today). We hope to have around 3000 users.

I have a 40GB VPS currently, which can be expanded, but /var/lib/docker/overlay2 is around 15.1GB in size and seems to have increased by a few GB just today which doesn’t seem normal.

Wondering if it due to having run ./launcher rebuild app earlier to fix the issue with the profile pictures.

Is their a way to clear these down, I presume they are docker volumes that got duplicated when running the rebuild.

We recently added retina image thumbnails in 2.2 which will increase the disk space usage a fair bit particularly on forums that post a lot of images.

That shouldn’t have caused a 3GB rise in a day though should it when there has only been 3 topics and 6 replies?

Could it have been the rebuild?

ncdu shows the below for /var/lib/docker/overlay2

   2.2 GiB [##########] /bd441c96567c23eee5ab702c8e96dead0c1f7770d441aefb00e36d5f5dc06ba3
    1.9 GiB [########  ] /e2ddece599695bd67e452064014e7f3196a128732c97712e1b487daf43ca1a01
    1.9 GiB [########  ] /3edb3cb93d17dfd565606db3cb5571910c47388faa4536a1882bef2cd2cecba6
  863.9 MiB [###       ] /aa16bb47057a3b67f7ffa042934f2f1b3c9c0a693283c7542ed4f3b01d957927
  807.1 MiB [###       ] /11aa437dce98be2e09c77626b04bf4e0bc1e9be3787f9be52c35a2dcc3350c20
  803.1 MiB [###       ] /e9aff9254d4e8e520cde4b7b41742e4af3aa5666a8e205f4fbd9a65e04035c8e
  489.2 MiB [##        ] /d6416e33fcf4c26b331922708d833ad461c5d80ffa5f1fd280240084f92cb075
  450.2 MiB [##        ] /2d34e66026eeaffd7b693fd3cee324752c7808ac7594919194868c5e8dc2a55f
  440.5 MiB [#         ] /2922db08a58d04a202c6c9ec012cfd5a862d2961139e51c485a20327a2499928
  387.6 MiB [#         ] /c245beec9eb2a022adf45a9d3c8754b6038aebf00c17058fd82522beaa321ed7
  344.7 MiB [#         ] /55aa386e7a93734d505a0247c6dd46cef039449af2101971eff6f40c854d11e8
  319.1 MiB [#         ] /e09fe23420b94216e57b66a78d00d1105c6777e3fa1fa48fa38f9d4bfffae111
  299.8 MiB [#         ] /e29d94227ebaea264a9cb66dab3a6111533e1559c8632871665117b043e1d15b
  262.7 MiB [#         ] /70e432b120fc01fe1bb45c3144b6241b82d7b7c27d15a972c633827cf5386d58
  249.6 MiB [#         ] /1b1e1332cedc308ad35d9bcdddc8dccbcd682aee47af611a196179352a0d79af
  249.6 MiB [#         ] /105e9b674958f34c480076b8d4ef2ed23f5ebcb57c2b325a05dd63d0eaf18cf8
  237.7 MiB [#         ] /8330f7e05640206368468ba699a4806642e79a27800f94e98ed2f4ad59453317
  222.7 MiB [#         ] /34645a191dff96caa4a36e98066aa20a35099862e4efdf7eb84f4cc7e79e7576
  220.7 MiB [          ] /92ff5c1025ab50416840081b57ea1525d574932e3f25eb3db1f736853816a8dc
  207.6 MiB [          ] /90cf84efef9333e351d8c6c00c115ee43f49d658ba1bbc4bf27d07bc11ba3e85
  198.6 MiB [          ] /8f11aea68944ddd5d2fcce9a46f48ea63aeeaf91195d58d55179d8424b7b8691
  190.2 MiB [          ] /297b60c0b2b9e49d0fa5d22cc303255bf371560384b77dd6e71b66ff7e5b1963
  154.5 MiB [          ] /e0e95a638eb7c0061683290bc941682113d16823d94f94e9145450ecb856fe99
  135.1 MiB [          ] /c1804216846f5ae5b2701258cfec9a22c63be99c5766a8422ae9c0036a79fdc3
  129.3 MiB [          ] /9cce7437a675b52bedc8841a539285459b1358688a34efe1e80dde23093bd0c5
  124.9 MiB [          ] /27c0c4856d6648538f5c8a85066c81699172ec3ad98ed89a05c3ca7c74756f48
  124.8 MiB [          ] /bfdd89b50e4aa9f07de2d8b43b76ee2584236294ac6b213a49ae98b0e97bf961
  123.6 MiB [          ] /cdb5387f50722e97b4355400a6856838084a7782916cf20a2de61686a4b39c49
  115.1 MiB [          ] /7f19ae5718a806401253b2a48065d2fa55ebb40e5d8f4bf7e0c83cf500bf660a
  109.3 MiB [          ] /c3bdf5c4ca53f78802424ea50cd576e138705b1a59b62a4f4d0bbb41864695e9
   92.5 MiB [          ] /7c58d856e3d4e4473793cac7c56484aaf7b6476dee16bd347e43cf0eabbc38cd
   91.2 MiB [          ] /33a3d7b091f7dfe4993138af924a261106ecbc68c06d991029c845726b770936
   90.7 MiB [          ] /c07b36548e3164f8ff2ffc295bf16bbd779e7c154b15171bd7a7d207ba32a90a
   84.8 MiB [          ] /8fcca931064dfdff49451ae786940543438dc47790e74592167845f8a94ed02d
   79.0 MiB [          ] /358fa94998b51a69c0db2368a65c67a87c8dff3834f3543488aecd9fe4389060
   78.0 MiB [          ] /ac1633d44b99521d0eaaeb9dc9fc67ba4f50bd150ccf1cd6b29b49b1a16b1a1c
   73.2 MiB [          ] /e3a7c2e1caf26566495213ab677bfb66f9c8f5263b26a7ea1f0a197bbd79a930
   67.5 MiB [          ] /79b559aa652d5c6e452173e07b66bf23f9420e06a1698a10d32106fffb9d37a6
   62.7 MiB [          ] /f34ddf034f3ffd94105ab549c50ad222c71a375c289ad0dd88d63c3558bb6e92
   61.6 MiB [          ] /a8917393d435231eb2b0ecef4ca235f3c19a16481168b1c2a8b299f69dc475ef

Probably nothing then; did you try ./launcher cleanup

5 Likes

No. I didn’t know that was a thing. Is that fine to run on an active site without it breaking anything? @codinghorror

Thanks

1 Like

Yes this is all extremely safe

1 Like

Excellent, thanks, that reclaimed 3.45GB so must have been the build caches. @codinghorror

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.