Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker image filling up for no reason

Featured Replies

Hi!

 

Sometime ago my docker image got filled up, so I didn't think much about it and just made the image bigger. Now, few weeks later the situation is the same, even though I installed no new applications.

 

I've found a topic about deleting log files, I tried that, but it didn't seem to work. How can I troubleshoot this?

 

Here is info from settings:

	Total devices 1 FS bytes used 18.28GiB
	devid    1 size 25.00GiB used 21.02GiB path /dev/loop0

 

Attached image shows change of 9% (2.25GB) within 24h!

 

Here is what cAdvisor shows:

sparklyballs/krusader latest sha256:fc5c1c031de688706 1.14 GiB 11.05.2015, 07:37:49
linuxserver/resilio-sync latest sha256:e742cb2dba2875364 165.85 MiB 8.07.2017, 00:37:21
limetech/plex latest sha256:7b004afe6eb50a869 531.12 MiB 29.06.2017, 05:58:05
google/cadvisor latest sha256:f9ba08bafdeaf8158 54.66 MiB 10.03.2017, 00:30:29
gfjardim/crashplan latest sha256:3517caa72cbcf70a7 756.87 MiB 25.10.2016, 17:47:05
binhex/arch-delugevpn latest sha256:760a794e10adb63a2 1.12 GiB 26.06.2017, 18:30:57
 
 
 

fillingup.jpg

  • Author
1 hour ago, Squid said:

Probably either this

 

or this

 

 

I hardly use Plex. I uninstalled all containers one by one except for the CrashPlan and this is the one causing problem. Of course I'd rather avoid removing the container and installing it again.

 

I've placed this line in extra parameters, but I don't know if it works, will it also remove all log files that are bigger than 50MB?
 

--log-opt max-size=50m --log-opt max-file=1

From your cadvisor list, its the deluge container filling up your image. It's using up more than 21 GB  of your docker image! You have probably a bad config of folders.

Edited by saarg

  • Author

OK, I removed Deluge.

 

 

Here is cAdvisor now:

 

plexinc/pms-docker latest sha256:beb7140c2a4a2a7ca 381.65 MiB 6.07.2017, 02:07:15
linuxserver/resilio-sync latest sha256:e742cb2dba2875364 165.85 MiB 8.07.2017, 00:37:21
google/cadvisor latest sha256:f9ba08bafdeaf8158 54.66 MiB 10.03.2017, 00:30:29
gfjardim/crashplan latest sha256:3517caa72cbcf70a7 756.87 MiB 25.10.2016, 17:47:05
 
It still doesn't add up to 17GB:
	Total devices 1 FS bytes used 12.30GiB
	devid    1 size 25.00GiB used 17.02GiB path /dev/loop0
 
 

 

2017-07-11 21_48_41-NAS_Dashboard.png

I don't think that container logs will show up in cadvisor if I remember correctly. @Squid will probably correct me if I'm wrong. Not sure about orphaned images either.

Read the links and the links therein that @Squid provided for a better understanding.

  • Author

I've tried this: 

And got:

 

 du -ah /var/lib/docker/containers/ | grep -v "/$" | sort -rh | head                                                                                                                                                                                                                                              -60
868K    /var/lib/docker/containers/b65f9c9778d637527888891144c87d79a09773e5429be                                                                                                                                                                                                                                             40cf66798a2e5c03b7a
844K    /var/lib/docker/containers/b65f9c9778d637527888891144c87d79a09773e5429be                                                                                                                                                                                                                                             40cf66798a2e5c03b7a/b65f9c9778d637527888891144c87d79a09773e5429be40cf66798a2e5c0                                                                                                                                                                                                                                             3b7a-json.log
48K     /var/lib/docker/containers/730a1b9490040a53ac58f6cb79f799767a4816c0cb9e2                                                                                                                                                                                                                                             508a352091ed7dfad34
32K     /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a
32K     /var/lib/docker/containers/17334868152a2e35ec408a2e986c961f18e73332b75a7                                                                                                                                                                                                                                             83e61ad1973ed31ba35
28K     /var/lib/docker/containers/730a1b9490040a53ac58f6cb79f799767a4816c0cb9e2                                                                                                                                                                                                                                             508a352091ed7dfad34/730a1b9490040a53ac58f6cb79f799767a4816c0cb9e2508a352091ed7df                                                                                                                                                                                                                                             ad34-json.log
8.0K    /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a/shm
8.0K    /var/lib/docker/containers/17334868152a2e35ec408a2e986c961f18e73332b75a7                                                                                                                                                                                                                                             83e61ad1973ed31ba35/17334868152a2e35ec408a2e986c961f18e73332b75a783e61ad1973ed31                                                                                                                                                                                                                                             ba35-json.log
4.0K    /var/lib/docker/containers/b65f9c9778d637527888891144c87d79a09773e5429be                                                                                                                                                                                                                                             40cf66798a2e5c03b7a/resolv.conf.hash
4.0K    /var/lib/docker/containers/b65f9c9778d637527888891144c87d79a09773e5429be                                                                                                                                                                                                                                             40cf66798a2e5c03b7a/resolv.conf
4.0K    /var/lib/docker/containers/b65f9c9778d637527888891144c87d79a09773e5429be                                                                                                                                                                                                                                             40cf66798a2e5c03b7a/hosts
4.0K    /var/lib/docker/containers/b65f9c9778d637527888891144c87d79a09773e5429be                                                                                                                                                                                                                                             40cf66798a2e5c03b7a/hostname
4.0K    /var/lib/docker/containers/b65f9c9778d637527888891144c87d79a09773e5429be                                                                                                                                                                                                                                             40cf66798a2e5c03b7a/hostconfig.json
4.0K    /var/lib/docker/containers/b65f9c9778d637527888891144c87d79a09773e5429be                                                                                                                                                                                                                                             40cf66798a2e5c03b7a/config.v2.json
4.0K    /var/lib/docker/containers/730a1b9490040a53ac58f6cb79f799767a4816c0cb9e2                                                                                                                                                                                                                                             508a352091ed7dfad34/resolv.conf
4.0K    /var/lib/docker/containers/730a1b9490040a53ac58f6cb79f799767a4816c0cb9e2                                                                                                                                                                                                                                             508a352091ed7dfad34/hosts
4.0K    /var/lib/docker/containers/730a1b9490040a53ac58f6cb79f799767a4816c0cb9e2                                                                                                                                                                                                                                             508a352091ed7dfad34/hostname
4.0K    /var/lib/docker/containers/730a1b9490040a53ac58f6cb79f799767a4816c0cb9e2                                                                                                                                                                                                                                             508a352091ed7dfad34/hostconfig.json
4.0K    /var/lib/docker/containers/730a1b9490040a53ac58f6cb79f799767a4816c0cb9e2                                                                                                                                                                                                                                             508a352091ed7dfad34/config.v2.json
4.0K    /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a/shm/sem.F8EEB26D-AB23-4061-8250-130AB5285A4A
4.0K    /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a/shm/sem.9334581e-7251-4ef7-a8ec-5bfe8e89ff68
4.0K    /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a/resolv.conf
4.0K    /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a/hosts
4.0K    /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a/hostname
4.0K    /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a/hostconfig.json
4.0K    /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a/config.v2.json
4.0K    /var/lib/docker/containers/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d33                                                                                                                                                                                                                                             55fb82b40bdd9e3da3a/6cb0fb6456aad67619ccfedfdd550c6aa7235fca58d3355fb82b40bdd9e3                                                                                                                                                                                                                                             da3a-json.log
4.0K    /var/lib/docker/containers/17334868152a2e35ec408a2e986c961f18e73332b75a7                                                                                                                                                                                                                                             83e61ad1973ed31ba35/resolv.conf.hash
4.0K    /var/lib/docker/containers/17334868152a2e35ec408a2e986c961f18e73332b75a7                                                                                                                                                                                                                                             83e61ad1973ed31ba35/resolv.conf
4.0K    /var/lib/docker/containers/17334868152a2e35ec408a2e986c961f18e73332b75a7                                                                                                                                                                                                                                             83e61ad1973ed31ba35/hosts
4.0K    /var/lib/docker/containers/17334868152a2e35ec408a2e986c961f18e73332b75a7                                                                                                                                                                                                                                             83e61ad1973ed31ba35/hostname
4.0K    /var/lib/docker/containers/17334868152a2e35ec408a2e986c961f18e73332b75a7                                                                                                                                                                                                                                             83e61ad1973ed31ba35/hostconfig.json
4.0K    /var/lib/docker/containers/17334868152a2e35ec408a2e986c961f18e73332b75a7                                                                                                                                                                                                                                             83e61ad1973ed31ba35/config.v2.json
0       /var/lib/docker/containers/b65f9c9778d637527888891144c87d79a09773e5429be                                                                                                                                                                                                                                             40cf66798a2e5c03b7a/shm
0       /var/lib/docker/containers/730a1b9490040a53ac58f6cb79f799767a4816c0cb9e2                                                                                                                                                                                                                                             508a352091ed7dfad34/shm
0       /var/lib/docker/containers/17334868152a2e35ec408a2e986c961f18e73332b75a7                                                                                                                                                                                                                                             83e61ad1973ed31ba35/shm

 

Its not the logs that are filling it up.  Rather something either Crashplan or a download client is storing data within it.  You have to check the settings for where eg: downloads are stored within each application, and verify that the path is the same as the template shows.

 

27 minutes ago, saarg said:

I don't think that container logs will show up in cadvisor if I remember correctly. @Squid will probably correct me if I'm wrong. Not sure about orphaned images either.

Read the links and the links therein that @Squid provided for a better understanding.

Best I've been able to figure out is that the stats returned by the native docker commands or via cAdvisor return the size of the application (actually its virtual size) only.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.