Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Add a script to detect all of local Images and then scan them #2

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

rezshar
Copy link

@rezshar rezshar commented Oct 29, 2022

for lazy guys like me, It would be a pleasure to have this script.
This script runs easily and scans all images.

@rezshar rezshar changed the title Add a script to detect all local Images and then scan them Add a script to detect all of local Images and then scan them Oct 30, 2022
# echo "OK!"
fi

if [ ! -d /var/lib/docker/image/overlay2/imagedb/content/sha256/ ]; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems that the docker-index would also work well with the short hash of docker images -aq
so you could just iterate over like this:

for i in $(docker images -qa); do docker-index cve --image "$i" DSA-2022-0001; done

assuming you have docker-index in your PATH.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants