mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Remove check_images
Removed check_images due to removal of -t parameter and $images being set in docker-bench-security.sh Signed-off-by: Niall T <jammasterj89@gmail.com>
This commit is contained in:
parent
6cd952c7a1
commit
e1d26673ee
1 changed files with 0 additions and 17 deletions
|
@ -1,22 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
check_images() {
|
||||
if [ -n "$imgList" ]; then
|
||||
pattern=$(echo "$imgList" | sed 's/,/ /g')
|
||||
for img in $pattern; do
|
||||
echo "Looking for image $img"
|
||||
sha256=$(docker images | grep $img | awk '{print $3}')
|
||||
if [ -z "$sha256" ]; then
|
||||
echo "Image $img not found. Exiting."
|
||||
exit 1
|
||||
fi
|
||||
images="$sha256"
|
||||
echo "images ------------------------------------ " $images
|
||||
echo "sha356" $sha256
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
check_4() {
|
||||
logit "\n"
|
||||
id_4="4"
|
||||
|
|
Loading…
Reference in a new issue