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 Size, Orphaned Images,Volumes. Duplicates and Purging

Featured Replies

I have some dockers. Not huge, like 60 or so containers. My docker folders with the btrfs "stuff" appears to be taking 600gb per location and over 1.2tb of data. I don't know why. After a few hours of trying to work with chatgpt on figuring out if I have stale images/volumes and stuff, i still can't figure out what to delete or move or whatever, and now in the processes, i've messed up my plex instance. Looking for some help figureing it out.

I have apparently 2 locations for docker stuff:

  • /mnt/cache/system/docker/btrfs/subvolumes

  • /var/lib/docker/btrfs/subvolumes

both of those locations are full of files like this:

  • drwxr-xr-x 1 root root 198 Feb 12 2025 fef1a8025fcaf61064345b440377065c9dcef2cc95b381fd3e48615de3564b10/

  • drwxr-xr-x 1 root root 148 Oct 12 01:03 ff15c13d8f22a8abb6bda00999030cb932485d3424fe7a733bde96420ed7d95a/

And they each look like they're taking up about 600gb. A LOT of the files look the same. Maybe they're old files? Maybe not they're not. Can I just delete the whole subvolumes directory? I thought a all the long term files or my persistant storage with dockers was stored somewhere else, like /mnt/user/appdata/ and whatever other folders i assigned each container. So, what stops me from just nuking that whole 600gb? isn't that full of just the images and temp volumes? Here's the pictures to maybe explain

So the fact there are 2 might not matter, but the fact that it has 521.4gb is concerning. How do i "purge" it. I've done the normal "prune" commands and it doesn't clear anything. I've tried to figure out what containers belong to what subvolume files, but it's proven difficult. So, I don't know which ones are active or which ones are leftovers. I've copied the whole shibang over somewhere else, and I'm tempted to just stop the docker service, nuke them all, and then figure it back up, knowing i have those backups. I think also relating to this, it's hanging up on shutdowns.

this command should show where my docker stuff is: "docker info | grep "Docker Root Dir""

WARNING: No swap limit support Docker Root Dir: /var/lib/docker

Anyways, can someone help me? i have 2x2tb ssds for my cache pool, and they're getting full because of all this. And i need to figure out how to get my plex back up, but i'd like to fix this first.

Thanks!

You can always delete and recreate the folder, though personally, I recommend using an image instead (the procedure below mentions image, but it's the same for folders):

https://docs.unraid.net/unraid-os/troubleshooting/common-issues/docker-troubleshooting/#re-creating-the-docker-image-file

Then:

https://docs.unraid.net/unraid-os/troubleshooting/common-issues/docker-troubleshooting/#reinstalling-docker-applications

Also see below if you have any custom docker networks:

https://docs.unraid.net/unraid-os/troubleshooting/common-issues/docker-troubleshooting/#restoring-docker-custom-networks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.