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.

Size of docker.img does not correlate to docker container/volume sizes.

Featured Replies

So I am getting docker size warnings, so looking to clean stuff up, but can't find what could be taking up space. I do see that stuff in /var/lib/docker/btrfs/subvolumes is 90% of space, but when I look at sizes of volumes, images, and containers I don't see anything this big. I also used https://github.com/SpaceinvaderOne/Unraid_check_docker_script/blob/main/Unraid_check_docker_script.sh but again didn't see anything. I did see reference to old (5+ year) old bugs in btrfs that had stale, duplicated data, but am not sure if that is still relevant. What can I do to see what to clean up?

Solved by Bob Cadenza

  • Author
1 hour ago, JorgeB said:

You can always recreate the image and see if the used space decreases.

I would rather not have to delete all my images, and start again.

  • Community Expert

Did you see the link? It takes a few seconds to restore everything.

  • Author
14 minutes ago, JorgeB said:

Did you see the link? It takes a few seconds to restore everything.

Yes I read the link, but what I read was you basically delete the img, and then reinstall the apps, which is what I don't want to do as I have some custom docker images that I don't want to have to rebuild.

 

Regardless, would like to know what is taking the space anyway, as I don't want to deal with this again in the future. Should I rebuild to use standard directory, or xfs?

  • Community Expert
13 minutes ago, Bob Cadenza said:

would like to know what is taking the space anyway

Cannot help with that, someone else might.

  • Author
  • Solution

Ok so I have learned some. Firstly using du -sh inside /var/lib/docker the btrfs stuff doesn't get calculated correctly, so I have found that

docker system df --format 'There are \t {{.TotalCount}} \t {{.Type}} \t taking up ......{{.Size}}'

shows the best account of the space used. In my case I had a large amount of build cache, so after deleting the build cache, I was able to clear a lot of space.

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.