container-inspector is a suite of analysis utilities and command line tools for Docker container images, their layers and how these relate to each other. It can also handle OCI images and Dockerfiles.
Full Changelog: https://github.com/nexB/container-inspector/compare/v32.0.1...v33.0.0
This is a minor release with bug fixes.
Thank you to AJ Arena @sig-aarena
This is a minor release with bug fixes and an output change.
This is a minor release with minor updates.
utils.extract_tar
now returns a list of error messages that occured during
extraction.utils.extract_tar
This is a major release with bug fixes and minor API changes.
This is a minor release with bug fixes and minor updates.
This is a minor new release with a bug fix for #32
This is a minor release with bug fixes and minor API changes.
The Distro.from_rootfs() now works as expected. It can handle empty location and works correctly with a base_distro. When a base_distro is provided it will raise an Exception if the found Distro.os does not match the base Distro.os
This is a major release.
The Image and Layer object structures have changed significantly:
legacy parent_id and parent_digest attributes are removed from Image
new attributes have been added to correctly track the tarball of an image or layer and its extracted location:
Therefore we have these attribute renames, additions and deletions:
Also:
the layer_id is now based on the SHA256 of the layer tarball and not based on the UUID-like directory names that contain a "layer.tar" in Docker image.
Image.config_digest is now prefixed with "sha256:"
All mappings keys are now lowercased recursively, including for labels.
Dropped support for Python 2. The minimum Python version is now Python 3.6
Dropped support for Docker image v1-style format
Dropped support for Windows as it was never intended to run on Windows. Windows as a container is a target though.
The way Image and Layers archives are extracted has changed significantly. Images are extracted as before keeping symlinks (which are essential to support certain Docker image layouts). In contrast, Layers are now exracted using extractcode and links are ignored.
Add new find_root function to find the root of a filesystem
Add new tests for distro detection and os-release handling using a large collection of os-release files
Layer/Image.to_dict() now accepts a new "exclude_fields" argument with a list of field names to optionally exclude.
Add experimental support for container images using the OCI layout and add a new Image attribute "image_format" with the value "docker" or "oci"
Add experimental support for Windows-based containers.