mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-07-22 19:27:50 +00:00
Merge d8820a86ed
into 02987bbb98
This commit is contained in:
commit
cbc75a5a5b
1 changed files with 2 additions and 2 deletions
|
@ -86,11 +86,11 @@ for img in $images; do
|
||||||
if docker history "$img" 2>/dev/null | grep -e "update" >/dev/null 2>&1; then
|
if docker history "$img" 2>/dev/null | grep -e "update" >/dev/null 2>&1; then
|
||||||
if [ $fail -eq 0 ]; then
|
if [ $fail -eq 0 ]; then
|
||||||
fail=1
|
fail=1
|
||||||
info "$check_4_7"
|
warn "$check_4_7"
|
||||||
fi
|
fi
|
||||||
imgName=$(docker inspect --format='{{.RepoTags}}' "$img" 2>/dev/null)
|
imgName=$(docker inspect --format='{{.RepoTags}}' "$img" 2>/dev/null)
|
||||||
if ! [ "$imgName" = '[]' ]; then
|
if ! [ "$imgName" = '[]' ]; then
|
||||||
info " * Update instruction found: $imgName"
|
warn " * Update instruction found: $imgName"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue