mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
check 6.x json log
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
be4dd69f3f
commit
e1adab029d
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,7 @@ done
|
|||
|
||||
if [ "$active_images" -lt "$((images / 2))" ]; then
|
||||
info " * Only $active_images out of $images are in use"
|
||||
logjson "6.1" "INFO: $active_images"
|
||||
fi
|
||||
|
||||
# 6.2
|
||||
|
@ -29,7 +30,9 @@ diff="$((total_containers - running_containers))"
|
|||
if [ "$diff" -gt 25 ]; then
|
||||
info "$check_6_2"
|
||||
info " * There are currently a total of $total_containers containers, with only $running_containers of them currently running"
|
||||
logjson "6.2" "INFO: $running_containers"
|
||||
else
|
||||
info "$check_6_2"
|
||||
info " * There are currently a total of $total_containers containers, with $running_containers of them currently running"
|
||||
logjson "6.2" "INFO: $running_containers"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue