Skip to content

tklab-group/docker-image-disassembler

Repository files navigation

Docker Image Disassembler

GitHub Release GitHub License

docker-image-disassembler is a CLI tool for extracting package versions and copied files from Docker image.

For package versions, it currently supports only packages installed via apt.

Usage

list-pkg

docker-image-disassembler list-pkg imageID [flags]

Prints the packages and their versions in the image as JSON format.

check-pkg

docker-image-disassembler check-pkg Dockerfile [flags]

Prints the difference of the packages versions between Dockerfile and the built image by it.

restore-copy

docker-image-disassembler restore-copy imageID targetPath [flags]

Extracts files, copied to the image by COPY instruction, from the image and embodies them at the target path.

Installation

Go tools

go get github.com/tklab-group/docker-image-disassembler

Binary

Download from release page.