{"id":16450965,"url":"https://github.com/aboutcode-org/container-inspector","last_synced_at":"2025-05-07T20:35:07.584Z","repository":{"id":37890834,"uuid":"67706629","full_name":"aboutcode-org/container-inspector","owner":"aboutcode-org","description":"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.","archived":false,"fork":false,"pushed_at":"2024-08-08T07:42:39.000Z","size":53471,"stargazers_count":34,"open_issues_count":21,"forks_count":9,"subscribers_count":13,"default_branch":"main","last_synced_at":"2024-11-09T18:48:18.419Z","etag":null,"topics":["container","container-analysis","container-image","docker","docker-image","oci-image"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aboutcode-org.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.rst","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-08T13:43:30.000Z","updated_at":"2024-09-12T07:01:04.000Z","dependencies_parsed_at":"2024-05-16T20:47:12.040Z","dependency_job_id":"9df5cfdb-e7e6-470b-b015-bda4943c917a","html_url":"https://github.com/aboutcode-org/container-inspector","commit_stats":{"total_commits":419,"total_committers":42,"mean_commits":9.976190476190476,"dds":0.4725536992840096,"last_synced_commit":"b3193fa831a233180fce6f70be57544dff70fdeb"},"previous_names":["aboutcode-org/container-inspector"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fcontainer-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fcontainer-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fcontainer-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutcode-org%2Fcontainer-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboutcode-org","download_url":"https://codeload.github.com/aboutcode-org/container-inspector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224732125,"owners_count":17360416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["container","container-analysis","container-image","docker","docker-image","oci-image"],"created_at":"2024-10-11T10:06:41.504Z","updated_at":"2024-11-17T23:05:06.972Z","avatar_url":"https://github.com/aboutcode-org.png","language":"Python","readme":"========================\ncontainer-inspector\n========================\n\n**container-inspector** is a suite of analysis utilities and command line tools\nfor Docker images, containers, root filesystems and virtual machine images.\n\nFor Docker images, it can process layers and how these relate to each other as\nwell as Dockerfiles.\n\n**container-inspector** provides utilities to:\n\n - identify Docker images in a file system, its layers and the related metadata.\n - given a Docker image, collect and report its metadata.\n - given a Docker image, extract the layers used to rebuild what how a runtime\n   rootfs would look.\n - find and parse Dockerfiles.\n - find how Dockerfiles relate to actual images and their layers.\n - given a Docker image, rootfs or Virtual Machime image collect inventories of\n   packages and files installed in an image or layer or rootfs\n   (implemented using a provided callable)\n - detect the \"distro\" of a rootfs of image using os-release files (and an\n   extensive test suite for these)\n - detect the operating system, architecture and\n\n\nQuick start\n-----------\n\n- Only runs on POSIX OSes\n- Get Python 3.6+\n- Check out a clone or download of container-inspector, then run: `./configure --dev`.\n- Then run `env/bin/container-inspector -h` for help.\n\n\nContainer image formats\n-----------------------\n\ncontainer-inspector handles the formats of Docker images as created by the\n`docker save` command. There are three versions for this Docker image format.\nThe latest v1.2 is a minor update to v1.1.\n\n- v1.1 provides improved and richer metadata over v1.0 with a top level manifest.json\n  file and a Config file for each image with full layer history and ordeing. It also\n  use checksum for enhanced security and traceability of images and layers.\n\n- v1.0 uses a simple `repositories` meta file and requires infering the ordering of\n  the layers in an image based on each individual layer `json` meta file. This\n  format is no longer support in the latest version of container-inspector.\n\n- All V1.x formats use the same storage format for layers e.g the layer format V1.0\n  where each layer is stored in a sub-directories named after the layer id.\n  Each of this directories contains a \"layer.tar\" tarball with the layer payload,\n  a \"json\" JSON metadata file describing the layer and a \"VERSION\" file describing\n  the layer format version. Each tarball represents a slice or diff of the image\n  root file system using the AUFS conventions.\n\nAt runtime, in a sequence of layers of an image, each root filesystem slice of a\nlayer is \"layered\" on top of each other from the root bottom layer to the latest\nlayer (or selected tagged layer) using a union file system (e.g. AUFS).\nIn AUFS, any file or directory prefixed with .wh. are \"white outs\" files deleting\nfiles in the underlying layers.\n\nSee the image specifications saved in docs/references/\n\n\nInternal data model\n-------------------\n- Image: this is a runnable image composed of metadata and a sequence of layers.\n- Layer: this is a slice of an image root filesystem with a payload and metadata\n- Resource: this a file or directory\n\n\nPlans\n-----\n - in progress: support OCI image layout\n - improved suport for Windows containers\n\n\nRelated tools\n-------------\n - Fetching Image from remote registry is available in ScanCode.io\n - Extracting VM Image filesystems as archives is available in ExtractCode\n - Scanning for application and system packages is available in ScanCode Toolkit\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcode-org%2Fcontainer-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboutcode-org%2Fcontainer-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutcode-org%2Fcontainer-inspector/lists"}