How to determine how much space Dockers are using in the .img file?


Recommended Posts

Is there an easy way to determine how much space each docker app is using within the .img file?  I'm pretty sure that the three dockers I'm running are using nowhere near the 15G I've allocated for the .img file however it would be nice to know exactly where things stand.

Link to comment

Run the command

df --block-size=1000

 

Look for the row for /dev/loop0.

 

It won't tell you space for each Docker, but will tell you how much space is being taken by all of you Docker files.

Or just go to the docker settings page and it will tell you right there in the middle of the screen
Link to comment

Run the command

df --block-size=1000

 

Look for the row for /dev/loop0.

 

It won't tell you space for each Docker, but will tell you how much space is being taken by all of you Docker files.

Or just go to the docker settings page and it will tell you right there in the middle of the screen

 

A little cryptic - but you're right.

 

Weird to have on Docker settings page. Maybe should be on the Docker page?

 

Or even on the Dashboard as a drive?

Link to comment

Run the command

df --block-size=1000

 

Look for the row for /dev/loop0.

 

It won't tell you space for each Docker, but will tell you how much space is being taken by all of you Docker files.

Or just go to the docker settings page and it will tell you right there in the middle of the screen

 

A little cryptic - but you're right.

 

Weird to have on Docker settings page. Maybe should be on the Docker page?

 

Or even on the Dashboard as a drive?

I'm surprised you didn't suggest CA...
Link to comment

Is there an easy way to determine how much space each docker app is using within the .img file?  I'm pretty sure that the three dockers I'm running are using nowhere near the 15G I've allocated for the .img file however it would be nice to know exactly where things stand.

There is a way, but I'll be damned if I can remember it at the moment.

 

At work so got no access to machine, (haven't updated my VPN settings on phone) but I'll take a look when I get home.

Link to comment
  • 3 years later...

Hi All & @Squid 

 

I have not been running Unraid that long and I seem to be having the same issue, getting these warnings:

Quote

Docker high image disk utilization: 18-03-2019 12:54
Warning [TOWER] - Docker image disk utilization of 76%
Docker utilization of image file /mnt/user/system/docker/docker.img

 

I then go to the Docker page and check size and get:

image.png.78b372ec82edd8d1e1ebc6e378c39b17.png

 

This doesn't look to bad? I already extended the docker image to : 40G

 

But doing the command:

 

root@TOWER:~# du -h -d 1 /var/lib/docker/
524K    /var/lib/docker/containerd
23G     /var/lib/docker/containers
0       /var/lib/docker/plugins
39G     /var/lib/docker/btrfs
17M     /var/lib/docker/image
52K     /var/lib/docker/volumes
0       /var/lib/docker/trust
104K    /var/lib/docker/network
0       /var/lib/docker/swarm
16K     /var/lib/docker/builder
56K     /var/lib/docker/buildkit
0       /var/lib/docker/unraid
0       /var/lib/docker/tmp
0       /var/lib/docker/runtimes
61G     /var/lib/docker/

 

What to do next?

 

UPDATE: just went to 78% I can see that Plex is busy generating video and Thumb preview?

548K    /var/lib/docker/containerd
24G     /var/lib/docker/containers
0       /var/lib/docker/plugins
39G     /var/lib/docker/btrfs
17M     /var/lib/docker/image
52K     /var/lib/docker/volumes
0       /var/lib/docker/trust
104K    /var/lib/docker/network
0       /var/lib/docker/swarm
16K     /var/lib/docker/builder
56K     /var/lib/docker/buildkit
0       /var/lib/docker/unraid
0       /var/lib/docker/tmp
0       /var/lib/docker/runtimes
62G     /var/lib/docker/

Edited by casperse
Link to comment
2 hours ago, Squid said:

23.5 gig Log File for Resilio? Do This:

 

I checked the settings and they are set to 100? (MB?) 

image.png.c5debf641f5ff8233122bdfbed8125e2.png

 

Thanks for the link so this would still be correct solution for this problem:

image.thumb.png.40d41f0f1eb91ca986aa2d760e6ac826.png

 

And YES! I am back to normal - THANKS @Squid !!!!

 

Docker image disk utilization: 18-03-2019 17:42

Notice [TOWER] - Docker image disk utilization returned to normal level
Docker utilization of image file /mnt/user/system/docker/docker.img

 

So adding this line to all Docker images as a standard would be a good thing to do?, since I cannot enable the docker log rotation without reinstalling all my dockers?

 

I am running 6.7.0-rc5

image.png.f887283537b307b5269983c6f315d05c.png

 

UPDATE: Got execution error on the sync docker so I had to remove the Extra parameters, trying the second time and it is still running

 

Edited by casperse
Link to comment

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.