1
0
Fork 0
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:
Marco Schmidt 2025-04-10 15:59:03 +02:00
parent ee9558b727
commit d058e63ad3

View file

@ -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)"')