Skip to content

Extract information about installed packages from a Docker image

Notifications You must be signed in to change notification settings

fridex/pkgextractor

Repository files navigation

Extract installed packages from a Docker image - pkgextract

Tool pkgextract is a simple utility that uses mercator-go and container-diff for extracting information about installed PyPI and RPM packages inside a Docker image.

Installation

Simply clone this repo and run docker build.

$ git clone https://github.com/fridex/pkgextractor.git
$ cd pkgextractor
$ docker build . -t pkgextract
...

Running pkgextract

See shipped help for info about provided commands:

$ docker run -v /var/run/docker.sock:/var/run/docker.sock pkgextract --help
$ # To analyze an image:
$ docker run --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker pkgextract -vvvv analyze -i fedora:27
...

About

Extract information about installed packages from a Docker image

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published