Consider stopped docker containers for reports, updates

This commit is contained in:
Martin Lablans
2022-10-06 12:49:31 +02:00
parent 0f44934419
commit f7c4bf6ac5
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ function hc_send(){
fi
if [ -z "$UPTIME" ]; then
UPTIME=$(docker ps --format 'table {{.Names}} \t{{.RunningFor}} \t {{.Status}} \t {{.Image}}' --filter name=bridgehead || echo "Unable to get docker statistics")
UPTIME=$(docker ps -a --format 'table {{.Names}} \t{{.RunningFor}} \t {{.Status}} \t {{.Image}}' --filter name=bridgehead || echo "Unable to get docker statistics")
fi
if [ -n "$2" ]; then