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.

Help finding what is growing my docker image

Featured Replies

Hi,

 

I am a new Unraid user for about a month now. I previously used Xpenology and proxmox.

I have a lot of containers running for farious purposes. Currently I have about 34 containers running.

I got a message twice yet saying that the docker image is full so I've increased it twice. Currently the size of the image is 35Gb. Reading through the forums I see that this usually means that something is storing its data inside the docker image instead of the unraid shares.

 

Since the docker image is a vdisk I can't simply browse the files. How can I find out what container is taking up my space? And if I found what is taking the space how do I delete the files?

 

After deleting the files can I safely decrease the size of the docker file?

 

I also see the I can change the docker image path to a directory instead of a vdisk option. What is the best option here and can I safely switch this without recreating all the containers

 

I've attached the logs just to be sure.

diagnostics-20240225-1115.zip

Edited by DutchTee86
add number of containers

Go to the Docker tab.  Scroll to the bottom of the page, and click Container Size.  It will show you what each container is using (sorted by size).  Check the templates for your heavy hitters to see if things are mapped correctly.  Most common is a typo error, or some location which was moved/removed after initially creating the container.

 

35GB for 38 containers is not unreasonable.  Remember that both running and stopped containers are all included in the docker image.  Some containers are written to be very light, others tend to be a bit more bloated.

Edited by ConnerVT

  • 10 months later...
On 2/25/2024 at 12:29 PM, DutchTee86 said:

Hi,

 

I am a new Unraid user for about a month now. I previously used Xpenology and proxmox.

I have a lot of containers running for farious purposes. Currently I have about 34 containers running.

I got a message twice yet saying that the docker image is full so I've increased it twice. Currently the size of the image is 35Gb. Reading through the forums I see that this usually means that something is storing its data inside the docker image instead of the unraid shares.

 

Since the docker image is a vdisk I can't simply browse the files. How can I find out what container is taking up my space? And if I found what is taking the space how do I delete the files?

 

After deleting the files can I safely decrease the size of the docker file?

 

I also see the I can change the docker image path to a directory instead of a vdisk option. What is the best option here and can I safely switch this without recreating all the containers If you find the culprit, check its config and move its data to a share. After cleaning up, you can safely shrink the Docker image. Switching to a directory instead of a vdisk is possible assignment help but may require recreating containers. Hope this helps!

 

I've attached the logs just to be sure.

diagnostics-20240225-1115.zip 137.85 kB · 0 downloads

you can use terminal commands or tools like docker system df to analyze usage. Once you locate the files, you can delete them and safely reduce the size of the Docker image afterward. Switching the Docker image to a directory instead of a vdisk is an option, but it requires recreating containers. Ensure backups are in place before making changes.
 

Edited by Orin94Fable

  • 6 months later...

I found a large amount of space was being taken up by unused images (from outdated containers or just previously used containers). I managed to save around 14GB from pruning all of these images:

docker image prune --all

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.