From 2fb57980eef3a4f51fbe90025d508396045ff25a Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Thu, 6 Oct 2022 12:04:24 +0200 Subject: [PATCH] Format docker status table --- lib/monitoring.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/monitoring.sh b/lib/monitoring.sh index d9bbf60..b6384b0 100755 --- a/lib/monitoring.sh +++ b/lib/monitoring.sh @@ -29,7 +29,7 @@ function hc_send(){ fi if [ -z "$UPTIME" ]; then - UPTIME=$(docker ps --format '{{.Names}} {{.RunningFor}}' --filter name=bridgehead || echo "Unable to get docker statistics") + UPTIME=$(docker ps --format 'table {{.Names}} \t{{.RunningFor}} \t {{.Status}} \t {{.Image}}' --filter name=bridgehead || echo "Unable to get docker statistics") fi if [ -n "$2" ]; then