On Tue, Jul 06, 2021 at 11:26:30AM +0530, Lingom KSR wrote:
>My requirement is, scan the images available in my local docker environment. I just tried the following Clair concepts, but could not get any outputs.. sometimes errors.
>
>--Scan using Clair Docker Compose File
>docker-compose up
What docker-compose file is this?
>docker pull infoslack/dvwad
>docker-compose exec clairctl clairctl analyze -l infoslack/dvwa
Clairctl doesn't have an "analyze" command, I suspect you may be using
a different, older project called "clairctl".
>-- Using Docker file
>docker run -p 5432:5432 -d --name db arminc/clair-db:2017-05-05
>docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:v2.0.0-rc.0
These aren't maintained by the clair project and are for an extremely
old version. None of the current maintainers have experience with that
version, which is significantly different than the current version.
>Note: I'm using a Windows machine
If you're using containers, I would hope this would work but it's
untested.
--
hank