Jump to content

Docker Image File Getting Full - Where has the space gone?


Go to solution Solved by TheImmatureAdmin,

Recommended Posts

Posted

Hi all, I have found a lot of topics similar to this but still haven't found my answer/solution. I hope I'm missing something easy.

 

UNRAID: 6.12.10

Docker image size: 50GB

Problem Description: My docker image is getting full, and seems to keep growing even though I'm not adding more containers. Eventually, I have issues because there is no free space. Typically, this is because of logs that are growing out of control, misconfigured paths, etc. So far, I haven't found anything that is misconfigured and my log sizes look reasonable. 

 

One thing I haven't figured out that would help me troubleshoot is, how do I ever find what is using this space? Knowing the container would greatly simplify the problem. I am running ~35 containers currently, and based on the measurements from using the "Container Size" tool, I'd expect at most around 23GB used out of 50GB, but I'm using now 44GB+. Below are screenshots from the Docker tab > Container Size output and from the Dashboard showing Docker image usage. 

image.png.0b251c253ec2fc83d4ac6da11a01958f.png

image.png.1ef9f07c2be09110dfa9f7bb3e914c44.png
 

I've also found a script from SpaceInvaderOne that gives more detailed data on docker image disk space usage, however it appears to align with the "Container Size" tool. I am still not seeing where the extra 20GB of data is being used.

Please let me know if I can provide any additional information. Thank you!

 

 

  • Solution
Posted

For anyone curious, I found this old thread and the 'docker volume prune' command worked for me. I anticipate the size to keep growing until I find root cause, but for now it worked.

https://forums.unraid.net/topic/103674-solved-kinda-high-docker-utilization-but-container-size-doesnt-match/

 

 

For more context, I ran 'docker system df' with these results:
image.png.9fbaef1f49c83a6773e92c34918a613e.png

 

89 local volumes seemed like a high number with only 3 in active use. I decided to go ahead and try the 'docker volume prune' command even though only ~1.8GB seemed to be reclaimable. The result showed "total reclaimed space: 1.449GB", but checking the dashboard in Unraid now shows only 23.1 GiB usage when I was sitting at 44+ GiB before executing the prune command. That command got me back over 20GB. 

image.png.3de603c12c660e7912dc76558bed8869.png

 

 

There still is the mystery of how that space is getting filled up, but at least I can clear it out now manually as needed.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...