mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +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
|
#!/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() {
|
check_4() {
|
||||||
logit "\n"
|
logit "\n"
|
||||||
id_4="4"
|
id_4="4"
|
||||||
|
|
Loading…
Reference in a new issue