coreos/analyze-local-images

Name: analyze-local-images

Owner: CoreOS

Description: deprecated tool for interacting with Clair locally

Created: 2017-05-04 21:05:13.0

Updated: 2018-05-21 07:59:37.0

Pushed: 2017-09-13 06:38:56.0

Homepage: null

Size: 837

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

??? DISCLAIMER ???

This project is…

analyze-local-images

This is a basic tool that enables quick analysis of local Docker images with Clair.

Install

First install Go and glide and then run the following commands:

$ git clone git@github.com:coreos/analyze-local-images.git $HOME/analyze-local-images-gopath/src/github.com/coreos/analyze-local-images
$ export GOPATH=$HOME/analyze-local-images-gopath
$ cd $HOME/analyze-local-images-gopath/src/github.com/coreos/analyze-local-images
$ glide install
$ go install github.com/coreos/analyze-local-images
Usage
Clair is a local process or inside of a container running on my current machine
yze-local-images <Docker Image>
Clair is running inside of container on a local VM (e.g. Docker For Mac)
yze-local-images -endpoint "http://<CLAIR-IP-ADDRESS>:6060" -my-address "<MY-IP-ADDRESS>" <Docker Image>

Clair needs filesystem access to the image files. If you run Clair locally, this tool will store the files in the system's temporary folder and Clair will find them there. It means if Clair is running in Docker, the host's temporary folder must be mounted in the Clair's container. If you run Clair remotely, this tool will run a small HTTP server to let Clair downloading them. It listens on the port 9279 and allows a single host: Clair's IP address, extracted from the -endpoint parameter. The my-address parameters defines the IP address of the HTTP server that Clair will use to download the images. With boot2docker, these parameters would be -endpoint "http://192.168.99.100:6060" -my-address "192.168.99.1".

As it runs an HTTP server and not an HTTPS one, be sure to not expose sensitive data and container images.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.