Skip to content

Develop capability to fetch consolidated image metadata, equivalent to skopeo inspect #28

Closed
1 of 1 issue completed
@cmoulliard

Description

@cmoulliard

Question

Can this python get the following information of an image ?

❯ skopeo inspect docker://paketobuildpacks/builder-ubi8-base:0.0.204
{
    "Name": "docker.io/paketobuildpacks/builder-ubi8-base",
    "Digest": "sha256:fbedab6060b4bb6c7bc695e43107469cec4f54da48cba752a9298b023b349ad5",
    "RepoTags": [
        "0.0.199",
        "0.0.200",
        "0.0.201",
        "0.0.202",
        "0.0.203",
        "0.0.204",
        "0.0.205",
        "latest"
    ],
    "Created": "1980-01-01T00:00:01Z",
    "DockerVersion": "",
    "Labels": {
        "architecture": "x86_64",
        "build-date": "2025-04-16T09:03:23",
        "com.redhat.component": "ubi8-minimal-container",
        "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
        "description": "The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
        "distribution-scope": "public",
        "io.buildah.version": "1.33.12",
...
    "Architecture": "amd64",
    "Os": "linux",
    "Env": [
        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
        "container=oci",
        "CNB_USER_ID=1002",
        "CNB_GROUP_ID=1000",
        "CNB_STACK_ID=io.buildpacks.stacks.ubi8"
    ],
    "Layers": [
        "sha256:0610017febcdb537d22d8fa7ca25918986a37606290a99250cc6d1c4b3c48911",
        "sha256:a5cce32eabe23faa4bb888137c9ffee420b2a5cc499434aa767062b12005c2a0",
        "sha256:d284d79fd468a82e1007a24e562ae64868b97447b5bd101dfb6e823618e08950",
        "sha256:89732bc7504122601f40269fc9ddfb70982e633ea9caf641ae45736f2846b004"
...

Sub-issues

Metadata

Metadata

Labels

v1.0.0-beta.1Features & bug fixes to be released in version 1.0.0-alpha.1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions