Format docker status table

This commit is contained in:
Martin Lablans 2022-10-06 12:04:24 +02:00
parent 8a62743894
commit 2fb57980ee
1 changed files with 1 additions and 1 deletions

View File

@ -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