Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

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.

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

Successfully merging this pull request may close these issues.

2 participants