mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-06-21 06:09:08 +00:00
Merge pull request #390 from jammasterj89/master
Issue #383 ability to exclude images Closes #383, #369
This commit is contained in:
commit
d1934b614e
3 changed files with 16 additions and 22 deletions
|
@ -1,20 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -n "$imgList" ]; then
|
||||
pattern=$(echo "$imgList" | sed 's/,/ /g')
|
||||
for img in $pattern; do
|
||||
echo "Looking for image $img"
|
||||
sha256=$(docker image ls "$img" -q)
|
||||
if [ -z "$sha256" ]; then
|
||||
echo "Image $img not found. Exiting."
|
||||
exit 1
|
||||
fi
|
||||
images="$images $sha256 "
|
||||
done
|
||||
else
|
||||
images=$(docker images -q)
|
||||
fi
|
||||
|
||||
check_4() {
|
||||
logit "\n"
|
||||
id_4="4"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue