Skip to content

buildah inspect does not work for remote image manifests #6096

@arewm

Description

@arewm

If I run buildah inspect on a remote image index, it returns a result. It does not if the remote image is an image manifest.

Image index:

$ buildah inspect quay.io/podman/hello
{
    "schemaVersion": 2,
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "manifests": [
        {
            "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
            "size": 427,
            "digest": "sha256:43de9874507eaa8ffd88eac885b672b1dfc57cc583d9ad920850f97f19809f8f",
            "platform": {
                "architecture": "amd64",
                "os": "linux"
            }
        },
[...]

Image manifest:

$ buildah inspect quay.io/podman/hello@sha256:43de9874507eaa8ffd88eac885b672b1dfc57cc583d9ad920850f97f19809f8f
Error: importing settings: quay.io/podman/hello@sha256:43de9874507eaa8ffd88eac885b672b1dfc57cc583d9ad920850f97f19809f8f: image not known

But a tool like skopeo does work:

$ skopeo inspect -n --config docker://quay.io/podman/hello@sha256:43de9874507eaa8ffd88eac885b672b1dfc57cc583d9ad920850f97f19809f8f
{
    "created": "2024-05-26T02:17:47.007111495Z",
    "architecture": "amd64",
    "os": "linux",
    "config": {
[...]```

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions