mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
remove images with size 0
To narrow the list of volumes to be shown in munin, all the small volumes with size "0B" are not shown. As size 0B is not relevant as volumesize, this these volumes add no additional information.
This commit is contained in:
parent
ee9558b727
commit
d058e63ad3
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ if [ "$1" = "autoconf" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
volume_info=$(docker system df -v --format '{{json .Volumes}}' | jq -r '.[] | "\(.Name):\(.Size):\(.Labels)"')
|
||||
volume_info=$(docker system df -v --format '{{json .Volumes}}' | jq -r '.[] | select(.Size != "0B" ) | "\(.Name):\(.Size):\(.Labels)"')
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue