Docker container size statistics


JonathanM

Recommended Posts

  • 3 weeks later...

I added a new button "Container Size" on the Docker page, which shows:

1) container size (this is the image size + writable size)

2) writable size (this is the part inside the container available to write information) - when this gets large, it needs attention

3) log file size (when log rotation is enabled this size should stay small)

 

Instead of starting/stopping containers, which I really want to avoid, it makes use of the standard docker function to read container sizes. These sizes are reported without the log file sizes.  I (shamelessly) took the part from Squid's script to include log file sizes.

 

image.thumb.png.ff315cb527b82b2df0c2fc10d6acbb8d.png

  • Like 1
  • Upvote 2
Link to comment
17 hours ago, bonienl said:

I added a new button "Container Size" on the Docker page, which shows:

Thanks for adding this.

 

Any chance of integrating it into the page like the share page size column with compute links and compute all button? Making as many of the different pages somewhat consistent as possible is a nice target.

Link to comment
On 10/2/2018 at 3:00 PM, bonienl said:

I (shamelessly) took the part from Squid's script to include log file sizes

I knew I should've put a copyright on the code :)

On 10/2/2018 at 3:00 PM, bonienl said:

2) writable size (this is the part inside the container available to write information) - when this gets large, it needs attention

 

kudos.  Did not know you could do it like that.  Much easier.

Link to comment
  • 2 months later...

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.