Container Image Scanner for InsightVM
100K+
Tool for analyzing a Docker image using the InsightVM API and exporting as JSON object.
For more information view the help page. For additional assistance, see Get Support.
docker run -it [--rm] -v path_to_local_file:path_to_file_on_container container-image-scanner:tagname -f=path_to_file_on_container -k=api_key [-r=api_region] [-l] [-ct=connect_timeout] [-rt=read_timeout] [-bn=build_name] [-bi=build_id]
Converts a docker image into JSON.
-f, --file=path_to_file_on_container Location of image tar file.
-k, --key=api_key API key used for authentication, region-specific.
-r, --region=api_region API region code, optional arg. Defaults to "us".
-l, --logging Debug logging flag, include if debug statements wanted.
-ct, --connect=connect_timeout The duration in milliseconds before connect timeout.
-rt, --read=read_timeout The duration in milliseconds before read timeout.
-bn --name=build_name The name of the build. This flag will post information to your console. It must be used with -bi.
-bi --id=build_id The id of the build. This flag will post information to your console. It must be used with -bn
--rm Clean up container after it runs.
https://insight.help.rapid7.com/docs/managing-platform-api-keys
https://insight.help.rapid7.com/docs/product-apis#section-supported-regions
docker run -it container-image-scanner:tagname -h
Export a docker image and pass the path into the main method along with a valid API key and valid API region.
docker save <image> -o test_image.tar-bn and -bi flags are optional arguments to post the build results. However if one is supplied they both must be supplied.java -jar container-image-scanner-<version>.jar -f=<path_to_file_in_environment> -k=<api_key> [-r=<api_region>] (local)docker run -it -v <path/to/local_file>:<path_to_file_on_container> container-image-scanner:latest [-f=<path_to_file_on_container>] [-k=<api_key>] [-r=<api_region>] (Docker)
docker run -it -v /local/file.tar:/newFile.tar container-image-scanner:latest -f newFile.tar -k "1234567key" -r us Content type
Image
Digest
sha256:cceea7528…
Size
99 MB
Last updated
over 3 years ago
docker pull rapid7/container-image-scanner