Sign inSign up

amouat/clair-analyse

By amouat

•Updated over 9 years ago

Container with Docker and analyse-local-images installed, for working with the Clair vuln scanner.

Image
3

1.1K

amouat/clair-analyse repository overview

⁠Analyse-local-images in Docker

Simple Dockerfile that builds an image with analyse-local-images⁠ installed, to be used in association with the Clair vulnerability scanner⁠.

Usage is:

$ docker run -it \
    --net clair-container-network \
    -v /var/run/docker.sock:/var/run/docker.sock \
    --name analyser \
    amouat/clair-analyse -endpoint http://clair:6060 -my-address analyser image-to-scan

This assumes Clair is running in container available as "clair" on "clair-container-network". It's necessary to give the container a name (such as "analyser") in order for Clair to be able to resolve the address when transferring the image to analyse.

Docker is installed in the image and the socket mounted for access to images. It would be cleaner to only install the Docker client and to avoid the http://get.docker.com⁠ script, but this was easier.

Tag summary

Content type

Image

Digest

Size

319.3 MB

Last updated

over 9 years ago

docker pull amouat/clair-analyse